summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/issue-43106-gating-of-derive-2.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/feature-gates/issue-43106-gating-of-derive-2.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-derive-2.rs b/src/test/ui/feature-gates/issue-43106-gating-of-derive-2.rs
new file mode 100644
index 000000000..3276309f7
--- /dev/null
+++ b/src/test/ui/feature-gates/issue-43106-gating-of-derive-2.rs
@@ -0,0 +1,20 @@
+// This test checks cases where the derive-macro does not exist.
+
+mod derive {
+ #[derive(x3300)]
+ //~^ ERROR cannot find derive macro `x3300` in this scope
+ //~| ERROR cannot find derive macro `x3300` in this scope
+ union U { f: i32 }
+
+ #[derive(x3300)]
+ //~^ ERROR cannot find derive macro `x3300` in this scope
+ //~| ERROR cannot find derive macro `x3300` in this scope
+ enum E { }
+
+ #[derive(x3300)]
+ //~^ ERROR cannot find derive macro `x3300` in this scope
+ //~| ERROR cannot find derive macro `x3300` in this scope
+ struct S;
+}
+
+fn main() {}