summaryrefslogtreecommitdiffstats
path: root/tests/ui/attributes/multiple-invalid.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/attributes/multiple-invalid.rs')
-rw-r--r--tests/ui/attributes/multiple-invalid.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/attributes/multiple-invalid.rs b/tests/ui/attributes/multiple-invalid.rs
new file mode 100644
index 000000000..ae044eb84
--- /dev/null
+++ b/tests/ui/attributes/multiple-invalid.rs
@@ -0,0 +1,10 @@
+// This test checks that all expected errors occur when there are multiple invalid attributes
+// on an item.
+
+#[inline]
+//~^ ERROR attribute should be applied to function or closure [E0518]
+#[target_feature(enable = "sse2")]
+//~^ ERROR attribute should be applied to a function
+const FOO: u8 = 0;
+
+fn main() { }