summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/extern-prelude-fail.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/resolve/extern-prelude-fail.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/resolve/extern-prelude-fail.rs b/src/test/ui/resolve/extern-prelude-fail.rs
new file mode 100644
index 000000000..7d387025a
--- /dev/null
+++ b/src/test/ui/resolve/extern-prelude-fail.rs
@@ -0,0 +1,9 @@
+// compile-flags:--extern extern_prelude
+// aux-build:extern-prelude.rs
+
+// Extern prelude names are not available by absolute paths
+
+fn main() {
+ use extern_prelude::S; //~ ERROR unresolved import `extern_prelude`
+ let s = ::extern_prelude::S; //~ ERROR failed to resolve
+}