]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/no-std-3.rs
Rollup merge of #101741 - andrewpollack:add-needs-unwind-ui-tests, r=tmandry
[rust.git] / src / test / ui / resolve / no-std-3.rs
1 // run-pass
2
3 #![no_std]
4
5 extern crate std;
6
7 mod foo {
8     pub fn test() -> Option<i32> {
9         Some(2)
10     }
11 }
12
13 fn main() {
14     let a = core::option::Option::Some("foo");
15     a.unwrap();
16     foo::test().unwrap();
17 }