rust/src/test/ui/derives/derive-on-trait-item-or-impl-item.stderr

16 lines
475 B
Plaintext
Raw Normal View History

2020-09-05 07:55:15 -05:00
error[E0774]: `derive` may only be applied to structs, enums and unions
2018-12-25 09:56:47 -06:00
--> $DIR/derive-on-trait-item-or-impl-item.rs:2:5
2018-08-08 07:28:26 -05:00
|
LL | #[derive(Clone)]
| ^^^^^^^^^^^^^^^^
2020-09-05 07:55:15 -05:00
error[E0774]: `derive` may only be applied to structs, enums and unions
2018-12-26 18:07:00 -06:00
--> $DIR/derive-on-trait-item-or-impl-item.rs:10:5
2018-08-08 07:28:26 -05:00
|
LL | #[derive(Clone)]
| ^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
2018-12-26 18:07:00 -06:00
2020-09-05 07:55:15 -05:00
For more information about this error, try `rustc --explain E0774`.