]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0117.stderr
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / error-codes / E0117.stderr
1 error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
2   --> $DIR/E0117.rs:1:1
3    |
4 LL | impl Drop for u32 {}
5    | ^^^^^^^^^^^^^^---
6    | |             |
7    | |             `u32` is not defined in the current crate
8    | impl doesn't use only types from inside the current crate
9    |
10    = note: define and implement a trait or new type instead
11
12 error[E0120]: the `Drop` trait may only be implemented for structs, enums, and unions
13   --> $DIR/E0117.rs:1:15
14    |
15 LL | impl Drop for u32 {}
16    |               ^^^ must be a struct, enum, or union
17
18 error: aborting due to 2 previous errors
19
20 Some errors have detailed explanations: E0117, E0120.
21 For more information about an error, try `rustc --explain E0117`.