]>
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 | | | |
4 | 12 | foo: Vec<u32>, | |
5 | | ------------- this field does not implement `Copy` | |
6 | ... | |
7 | 15 | impl Copy for Foo { } | |
8 | | ^^^^ | |
9 | ||
32a655c1 SL |
10 | error[E0204]: the trait `Copy` may not be implemented for this type |
11 | --> $DIR/E0204.rs:17:10 | |
12 | | | |
13 | 17 | #[derive(Copy)] | |
14 | | ^^^^ | |
15 | 18 | struct Foo2<'a> { | |
16 | 19 | ty: &'a mut bool, | |
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 | | | |
22 | 23 | Bar { x: Vec<u32> }, | |
23 | | ----------- this field does not implement `Copy` | |
24 | ... | |
25 | 27 | impl Copy for EFoo { } | |
26 | | ^^^^ | |
27 | ||
32a655c1 SL |
28 | error[E0204]: the trait `Copy` may not be implemented for this type |
29 | --> $DIR/E0204.rs:29:10 | |
30 | | | |
31 | 29 | #[derive(Copy)] | |
32 | | ^^^^ | |
33 | 30 | enum EFoo2<'a> { | |
34 | 31 | Bar(&'a mut bool), | |
35 | | ------------- this field does not implement `Copy` | |
36 | ||
7cac9316 | 37 | error: aborting due to previous error(s) |
32a655c1 | 38 |