diff options
Diffstat (limited to 'tests/ui/resolve/no-std-3.rs')
| -rw-r--r-- | tests/ui/resolve/no-std-3.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/resolve/no-std-3.rs b/tests/ui/resolve/no-std-3.rs new file mode 100644 index 00000000000..f6c4ed5794c --- /dev/null +++ b/tests/ui/resolve/no-std-3.rs @@ -0,0 +1,17 @@ +// run-pass + +#![no_std] + +extern crate std; + +mod foo { + pub fn test() -> Option<i32> { + Some(2) + } +} + +fn main() { + let a = core::option::Option::Some("foo"); + a.unwrap(); + foo::test().unwrap(); +} |
