2021-07-17 11:13:50 -07:00
|
|
|
error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
|
2019-08-27 02:07:26 +03:00
|
|
|
--> $DIR/macros-in-extern-derive.rs:2:5
|
|
|
|
|
|
|
|
|
LL | #[derive(Copy)]
|
2021-07-17 11:13:50 -07:00
|
|
|
| ^^^^^^^^^^^^^^^ not applicable here
|
|
|
|
LL | fn f();
|
|
|
|
| ------- not a `struct`, `enum` or `union`
|
2019-08-27 02:07:26 +03:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2020-09-05 14:55:15 +02:00
|
|
|
For more information about this error, try `rustc --explain E0774`.
|