summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/soft-syntax-gates-with-errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/feature-gates/soft-syntax-gates-with-errors.rs')
-rw-r--r--src/test/ui/feature-gates/soft-syntax-gates-with-errors.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/test/ui/feature-gates/soft-syntax-gates-with-errors.rs b/src/test/ui/feature-gates/soft-syntax-gates-with-errors.rs
deleted file mode 100644
index 49f1cba71..000000000
--- a/src/test/ui/feature-gates/soft-syntax-gates-with-errors.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-// check-fail
-// This file is used to test the behavior of the early-pass syntax warnings.
-// If macro syntax is stabilized, replace with a different unstable syntax.
-
-macro a() {}
-//~^ ERROR: `macro` is experimental
-
-#[cfg(FALSE)]
-macro b() {}
-
-macro_rules! identity {
- ($($x:tt)*) => ($($x)*);
-}
-
-identity! {
- macro c() {}
- //~^ ERROR: `macro` is experimental
-}
-
-#[cfg(FALSE)]
-identity! {
- macro d() {} // No error
-}
-
-identity! {
- #[cfg(FALSE)]
- macro e() {}
-}
-
-fn main() {}