fork/rust

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

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

1.39.0
1.1 KiB39 linesraw
1error[E0204]: the trait `Copy` may not be implemented for this type
2  --> $DIR/E0204.rs:5:6
3   |
4LL |     foo: Vec<u32>,
5   |     ------------- this field does not implement `Copy`
6...
7LL | impl Copy for Foo { }
8   |      ^^^^
9
10error[E0204]: the trait `Copy` may not be implemented for this type
11  --> $DIR/E0204.rs:7:10
12   |
13LL | #[derive(Copy)]
14   |          ^^^^
15LL | struct Foo2<'a> {
16LL |     ty: &'a mut bool,
17   |     ---------------- this field does not implement `Copy`
18
19error[E0204]: the trait `Copy` may not be implemented for this type
20  --> $DIR/E0204.rs:17:6
21   |
22LL |     Bar { x: Vec<u32> },
23   |           ----------- this field does not implement `Copy`
24...
25LL | impl Copy for EFoo { }
26   |      ^^^^
27
28error[E0204]: the trait `Copy` may not be implemented for this type
29  --> $DIR/E0204.rs:19:10
30   |
31LL | #[derive(Copy)]
32   |          ^^^^
33LL | enum EFoo2<'a> {
34LL |     Bar(&'a mut bool),
35   |         ------------ this field does not implement `Copy`
36
37error: aborting due to 4 previous errors
38
39For more information about this error, try `rustc --explain E0204`.