fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
771 B19 linesraw
1error[E0120]: the Drop trait may only be implemented on structures
2  --> $DIR/drop-on-non-struct.rs:1:19
3   |
4LL | impl<'a> Drop for &'a mut isize {
5   |                   ^^^^^^^^^^^^^ implementing Drop requires a struct
6
7error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
8  --> $DIR/drop-on-non-struct.rs:1:1
9   |
10LL | impl<'a> Drop for &'a mut isize {
11   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl doesn't use types inside crate
12   |
13   = note: the impl does not reference only types defined in this crate
14   = note: define and implement a trait or new type instead
15
16error: aborting due to 2 previous errors
17
18Some errors have detailed explanations: E0117, E0120.
19For more information about an error, try `rustc --explain E0117`.