summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/issue-43106-gating-of-test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/feature-gates/issue-43106-gating-of-test.rs')
-rw-r--r--src/test/ui/feature-gates/issue-43106-gating-of-test.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-test.rs b/src/test/ui/feature-gates/issue-43106-gating-of-test.rs
new file mode 100644
index 000000000..39835c926
--- /dev/null
+++ b/src/test/ui/feature-gates/issue-43106-gating-of-test.rs
@@ -0,0 +1,7 @@
+// The non-crate level cases are in issue-43106-gating-of-builtin-attrs.rs.
+
+#![allow(soft_unstable)]
+#![test = "4200"]
+//~^ ERROR cannot determine resolution for the attribute macro `test`
+//~^^ ERROR `test` attribute cannot be used at crate level
+fn main() {}