summaryrefslogtreecommitdiffstats
path: root/tests/ui-fulldeps/hash-stable-is-unstable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui-fulldeps/hash-stable-is-unstable.rs')
-rw-r--r--tests/ui-fulldeps/hash-stable-is-unstable.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui-fulldeps/hash-stable-is-unstable.rs b/tests/ui-fulldeps/hash-stable-is-unstable.rs
new file mode 100644
index 000000000..11fe688f3
--- /dev/null
+++ b/tests/ui-fulldeps/hash-stable-is-unstable.rs
@@ -0,0 +1,17 @@
+// ignore-stage1
+// compile-flags: -Zdeduplicate-diagnostics=yes
+extern crate rustc_data_structures;
+//~^ use of unstable library feature 'rustc_private'
+extern crate rustc_macros;
+//~^ use of unstable library feature 'rustc_private'
+extern crate rustc_query_system;
+//~^ use of unstable library feature 'rustc_private'
+
+use rustc_macros::HashStable;
+//~^ use of unstable library feature 'rustc_private'
+
+#[derive(HashStable)]
+//~^ use of unstable library feature 'rustc_private'
+struct Test;
+
+fn main() {}