]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-49934-errors.rs
Auto merge of #78066 - bugadani:wat, r=jonas-schievink
[rust.git] / src / test / ui / issues / issue-49934-errors.rs
1 fn foo<#[derive(Debug)] T>() {
2 //~^ ERROR `derive` may only be applied to structs, enums and unions
3 //~| ERROR expected an inert attribute, found a derive macro
4     match 0 {
5         #[derive(Debug)]
6         //~^ ERROR `derive` may only be applied to structs, enums and unions
7         //~| ERROR expected an inert attribute, found a derive macro
8         _ => (),
9     }
10 }
11
12 fn main() {
13 }