fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
982 B27 linesraw
1error[E0206]: the trait `Copy` may not be implemented for this type
2  --> $DIR/E0206.rs:3:15
3   |
4LL | impl Copy for Foo { }
5   |               ^^^ type is not a structure or enumeration
6
7error[E0206]: the trait `Copy` may not be implemented for this type
8  --> $DIR/E0206.rs:10:15
9   |
10LL | impl Copy for &'static mut Bar { }
11   |               ^^^^^^^^^^^^^^^^ type is not a structure or enumeration
12
13error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
14  --> $DIR/E0206.rs:3:1
15   |
16LL | impl Copy for Foo { }
17   | ^^^^^^^^^^^^^^---
18   | |             |
19   | |             this is not defined in the current crate because arrays are always foreign
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, E0206.
27For more information about an error, try `rustc --explain E0117`.