fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
771 B21 linesraw
1error[E0117]: only traits defined in the current crate can be implemented for primitive types
2  --> $DIR/E0117.rs:1:1
3   |
4LL | 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
12error[E0120]: the `Drop` trait may only be implemented for local structs, enums, and unions
13  --> $DIR/E0117.rs:1:15
14   |
15LL | impl Drop for u32 {}
16   |               ^^^ must be a struct, enum, or union in the current crate
17
18error: aborting due to 2 previous errors
19
20Some errors have detailed explanations: E0117, E0120.
21For more information about an error, try `rustc --explain E0117`.