]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no-std-3.rs
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / 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 }