mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-21 16:59:05 +00:00
18 lines
217 B
Rust
18 lines
217 B
Rust
// run-pass
|
|
|
|
#![no_std]
|
|
|
|
extern crate std;
|
|
|
|
mod foo {
|
|
pub fn test() -> Option<i32> {
|
|
Some(2)
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
let a = core::option::Option::Some("foo");
|
|
a.unwrap();
|
|
foo::test().unwrap();
|
|
}
|