about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-49934-errors.rs
blob: 6fa5f01ffd926c58a1efb69944c124bd8e3b2957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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() {
}