1 error[E0204]: the trait `Copy` may not be implemented for this type
5 | ------------- this field does not implement `Copy`
7 LL | impl Copy for Foo { }
10 error[E0204]: the trait `Copy` may not be implemented for this type
11 --> $DIR/E0204.rs:7:10
15 LL | struct Foo2<'a> {
16 LL | ty: &'a mut bool,
17 | ---------------- this field does not implement `Copy`
19 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
21 error[E0204]: the trait `Copy` may not be implemented for this type
22 --> $DIR/E0204.rs:17:6
24 LL | Bar { x: Vec<u32> },
25 | ----------- this field does not implement `Copy`
27 LL | impl Copy for EFoo { }
30 error[E0204]: the trait `Copy` may not be implemented for this type
31 --> $DIR/E0204.rs:19:10
36 LL | Bar(&'a mut bool),
37 | ------------ this field does not implement `Copy`
39 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
41 error: aborting due to 4 previous errors
43 For more information about this error, try `rustc --explain E0204`.