summaryrefslogtreecommitdiffstats
path: root/tests/ui/no-core-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/no-core-1.rs')
-rw-r--r--tests/ui/no-core-1.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/no-core-1.rs b/tests/ui/no-core-1.rs
new file mode 100644
index 000000000..9374f546a
--- /dev/null
+++ b/tests/ui/no-core-1.rs
@@ -0,0 +1,15 @@
+// run-pass
+
+#![allow(stable_features)]
+#![feature(no_core, core)]
+#![no_core]
+
+extern crate std;
+extern crate core;
+
+use std::option::Option::Some;
+
+fn main() {
+ let a = Some("foo");
+ a.unwrap();
+}