]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derives/derive-on-trait-item-or-impl-item.stderr
Update tests
[rust.git] / src / test / ui / derives / derive-on-trait-item-or-impl-item.stderr
1 error[E0774]: `derive` may only be applied to structs, enums and unions
2   --> $DIR/derive-on-trait-item-or-impl-item.rs:2:5
3    |
4 LL |     #[derive(Clone)]
5    |     ^^^^^^^^^^^^^^^^
6
7 error[E0774]: `derive` may only be applied to structs, enums and unions
8   --> $DIR/derive-on-trait-item-or-impl-item.rs:10:5
9    |
10 LL |     #[derive(Clone)]
11    |     ^^^^^^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0774`.