]>
Commit | Line | Data |
---|---|---|
2c00a5a8 | 1 | error[E0120]: the Drop trait may only be implemented on structures |
0731742a | 2 | --> $DIR/E0117.rs:1:15 |
2c00a5a8 | 3 | | |
532ac7d7 | 4 | LL | impl Drop for u32 {} |
2c00a5a8 XL |
5 | | ^^^ implementing Drop requires a struct |
6 | ||
7 | error[E0117]: only traits defined in the current crate can be implemented for arbitrary types | |
0731742a | 8 | --> $DIR/E0117.rs:1:1 |
2c00a5a8 | 9 | | |
532ac7d7 | 10 | LL | impl Drop for u32 {} |
0531ce1d | 11 | | ^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate |
2c00a5a8 | 12 | | |
0731742a | 13 | = note: the impl does not reference only types defined in this crate |
2c00a5a8 XL |
14 | = note: define and implement a trait or new type instead |
15 | ||
16 | error: aborting due to 2 previous errors | |
17 | ||
0531ce1d XL |
18 | Some errors occurred: E0117, E0120. |
19 | For more information about an error, try `rustc --explain E0117`. |