fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0204]: the trait `Copy` cannot be implemented for this type 2 --> $DIR/E0204.rs:5:15 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` cannot 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 | 19 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) 20 21error[E0204]: the trait `Copy` cannot be implemented for this type 22 --> $DIR/E0204.rs:17:15 23 | 24LL | Bar { x: Vec<u32> }, 25 | ----------- this field does not implement `Copy` 26... 27LL | impl Copy for EFoo { } 28 | ^^^^ 29 30error[E0204]: the trait `Copy` cannot be implemented for this type 31 --> $DIR/E0204.rs:19:10 32 | 33LL | #[derive(Copy)] 34 | ^^^^ 35LL | enum EFoo2<'a> { 36LL | Bar(&'a mut bool), 37 | ------------ this field does not implement `Copy` 38 | 39 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info) 40 41error: aborting due to 4 previous errors 42 43For more information about this error, try `rustc --explain E0204`.