blob: bf95f8fa7e1ec8fbcfb388efed713b96be520c49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
fn foo<#[derive(Debug)] T>() {
//~^ ERROR `derive` may only be applied to structs, enums and unions
match 0 {
#[derive(Debug)]
//~^ ERROR `derive` may only be applied to structs, enums and unions
_ => (),
}
}
fn main() {
}
|