summaryrefslogtreecommitdiffstats
path: root/tests/ui-fulldeps/pathless-extern-unstable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui-fulldeps/pathless-extern-unstable.rs')
-rw-r--r--tests/ui-fulldeps/pathless-extern-unstable.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui-fulldeps/pathless-extern-unstable.rs b/tests/ui-fulldeps/pathless-extern-unstable.rs
new file mode 100644
index 000000000..524b0c2f7
--- /dev/null
+++ b/tests/ui-fulldeps/pathless-extern-unstable.rs
@@ -0,0 +1,10 @@
+// ignore-stage1
+// edition:2018
+// compile-flags:--extern rustc_middle
+
+// Test that `--extern rustc_middle` fails with `rustc_private`.
+
+pub use rustc_middle;
+//~^ ERROR use of unstable library feature 'rustc_private'
+
+fn main() {}