blob: f937d2593a0c7736cad465fd24005371744cc9a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![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();
}
|