rust/src/test/ui/no-std-3.rs
2019-07-27 18:56:16 +03:00

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();
}