summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-custom_attribute.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/feature-gates/feature-gate-custom_attribute.rs
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/feature-gates/feature-gate-custom_attribute.rs')
-rw-r--r--src/test/ui/feature-gates/feature-gate-custom_attribute.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-custom_attribute.rs b/src/test/ui/feature-gates/feature-gate-custom_attribute.rs
deleted file mode 100644
index 936cab268..000000000
--- a/src/test/ui/feature-gates/feature-gate-custom_attribute.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-// Check that literals in attributes parse just fine.
-
-#[fake_attr] //~ ERROR cannot find attribute `fake_attr` in this scope
-#[fake_attr(100)] //~ ERROR cannot find attribute `fake_attr` in this scope
-#[fake_attr(1, 2, 3)] //~ ERROR cannot find attribute `fake_attr` in this scope
-#[fake_attr("hello")] //~ ERROR cannot find attribute `fake_attr` in this scope
-#[fake_attr(name = "hello")] //~ ERROR cannot find attribute `fake_attr` in this scope
-#[fake_attr(1, "hi", key = 12, true, false)] //~ ERROR cannot find attribute `fake_attr` in th
-#[fake_attr(key = "hello", val = 10)] //~ ERROR cannot find attribute `fake_attr` in this scop
-#[fake_attr(key("hello"), val(10))] //~ ERROR cannot find attribute `fake_attr` in this scope
-#[fake_attr(enabled = true, disabled = false)] //~ ERROR cannot find attribute `fake_attr` in
-#[fake_attr(true)] //~ ERROR cannot find attribute `fake_attr` in this scope
-#[fake_attr(pi = 3.14159)] //~ ERROR cannot find attribute `fake_attr` in this scope
-#[fake_attr(b"hi")] //~ ERROR cannot find attribute `fake_attr` in this scope
-#[fake_doc(r"doc")] //~ ERROR cannot find attribute `fake_doc` in this scope
-struct Q {}
-
-fn main() {}