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