summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-49934-errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-49934-errors.rs')
-rw-r--r--tests/ui/issues/issue-49934-errors.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-49934-errors.rs b/tests/ui/issues/issue-49934-errors.rs
new file mode 100644
index 000000000..dd14bac5e
--- /dev/null
+++ b/tests/ui/issues/issue-49934-errors.rs
@@ -0,0 +1,8 @@
+fn foo<#[derive(Debug)] T>() { //~ ERROR expected non-macro attribute, found attribute macro
+ match 0 {
+ #[derive(Debug)] //~ ERROR expected non-macro attribute, found attribute macro
+ _ => (),
+ }
+}
+
+fn main() {}