]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/no-std-3.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / 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 }