1 error[E0774]: `derive` may only be applied to structs, enums and unions
2 --> $DIR/issue-49934-errors.rs:1:8
4 LL | fn foo<#[derive(Debug)] T>() {
7 error: expected an inert attribute, found a derive macro
8 --> $DIR/issue-49934-errors.rs:1:17
10 LL | fn foo<#[derive(Debug)] T>() {
13 error[E0774]: `derive` may only be applied to structs, enums and unions
14 --> $DIR/issue-49934-errors.rs:5:9
19 error: expected an inert attribute, found a derive macro
20 --> $DIR/issue-49934-errors.rs:5:18
25 error: aborting due to 4 previous errors
27 For more information about this error, try `rustc --explain E0774`.