summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/macro-path-prelude-fail-5.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/macro-path-prelude-fail-5.rs')
-rw-r--r--tests/ui/macros/macro-path-prelude-fail-5.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-path-prelude-fail-5.rs b/tests/ui/macros/macro-path-prelude-fail-5.rs
new file mode 100644
index 000000000..b82b6bc78
--- /dev/null
+++ b/tests/ui/macros/macro-path-prelude-fail-5.rs
@@ -0,0 +1,10 @@
+#[derive(Clone, Debug)] // OK
+struct S;
+
+#[derive(Debug, inline)] //~ ERROR expected derive macro, found built-in attribute `inline`
+struct T;
+
+#[derive(inline, Debug)] //~ ERROR expected derive macro, found built-in attribute `inline`
+struct U;
+
+fn main() {}