2020-09-05 14:55:15 +02:00
|
|
|
error[E0774]: `derive` may only be applied to structs, enums and unions
|
2019-09-09 09:26:25 -03:00
|
|
|
--> $DIR/issue-49934-errors.rs:1:8
|
|
|
|
|
|
|
|
|
|
|
LL | fn foo<#[derive(Debug)] T>() {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-09-05 14:55:15 +02:00
|
|
|
error[E0774]: `derive` may only be applied to structs, enums and unions
|
2020-11-19 01:54:19 +03:00
|
|
|
--> $DIR/issue-49934-errors.rs:4:9
|
2019-09-09 09:26:25 -03:00
|
|
|
|
|
|
|
|
|
LL | #[derive(Debug)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-11-19 01:54:19 +03:00
|
|
|
error: aborting due to 2 previous errors
|
2019-09-09 09:26:25 -03:00
|
|
|
|
2020-09-05 14:55:15 +02:00
|
|
|
For more information about this error, try `rustc --explain E0774`.
|