]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/no-std-3.rs
Auto merge of #61361 - estebank:infer-type, r=varkor
[rust.git] / src / test / run-pass / no-std-3.rs
1 #![no_std]
2
3 extern crate std;
4
5 mod foo {
6     pub fn test() -> Option<i32> {
7         Some(2)
8     }
9 }
10
11 fn main() {
12     let a = core::option::Option::Some("foo");
13     a.unwrap();
14     foo::test().unwrap();
15 }