rust/src/test/ui/issues/issue-49934-errors.rs
2019-09-14 22:36:58 +03:00

13 lines
386 B
Rust

fn foo<#[derive(Debug)] T>() {
//~^ ERROR `derive` may only be applied to structs, enums and unions
//~| ERROR expected an inert attribute, found a derive macro
match 0 {
#[derive(Debug)]
//~^ ERROR `derive` may only be applied to structs, enums and unions
//~| ERROR expected an inert attribute, found a derive macro
_ => (),
}
}
fn main() {
}