]> git.proxmox.com Git - rustc.git/blame - tests/ui/resolve/no-std-3.rs
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / ui / resolve / no-std-3.rs
CommitLineData
416331ca
XL
1// run-pass
2
e9174d1e
SL
3#![no_std]
4
5extern crate std;
6
7mod foo {
8 pub fn test() -> Option<i32> {
9 Some(2)
10 }
11}
c34b1796 12
c34b1796 13fn main() {
e9174d1e
SL
14 let a = core::option::Option::Some("foo");
15 a.unwrap();
16 foo::test().unwrap();
223e47cc 17}