fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.0 KiB27 linesraw
1error[E0412]: cannot find type `Nonexistent` in this scope
2  --> $DIR/drop-on-non-struct.rs:9:15
3   |
4LL | impl Drop for Nonexistent {
5   |               ^^^^^^^^^^^ not found in this scope
6
7error[E0120]: the `Drop` trait may only be implemented for structs, enums, and unions
8  --> $DIR/drop-on-non-struct.rs:1:19
9   |
10LL | impl<'a> Drop for &'a mut isize {
11   |                   ^^^^^^^^^^^^^ must be a struct, enum, or union
12
13error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
14  --> $DIR/drop-on-non-struct.rs:1:1
15   |
16LL | impl<'a> Drop for &'a mut isize {
17   | ^^^^^^^^^^^^^^^^^^-------------
18   | |                 |
19   | |                 `isize` is not defined in the current crate
20   | impl doesn't use only types from inside the current crate
21   |
22   = note: define and implement a trait or new type instead
23
24error: aborting due to 3 previous errors
25
26Some errors have detailed explanations: E0117, E0120, E0412.
27For more information about an error, try `rustc --explain E0117`.