]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/E0204.stderr
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / span / E0204.stderr
1 error[E0204]: the trait `Copy` may not be implemented for this type
2   --> $DIR/E0204.rs:5:15
3    |
4 LL |     foo: Vec<u32>,
5    |     ------------- this field does not implement `Copy`
6 ...
7 LL | impl Copy for Foo { }
8    |               ^^^
9
10 error[E0204]: the trait `Copy` may not be implemented for this type
11   --> $DIR/E0204.rs:7:10
12    |
13 LL | #[derive(Copy)]
14    |          ^^^^
15 LL | struct Foo2<'a> {
16 LL |     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
21 error[E0204]: the trait `Copy` may not be implemented for this type
22   --> $DIR/E0204.rs:17:15
23    |
24 LL |     Bar { x: Vec<u32> },
25    |           ----------- this field does not implement `Copy`
26 ...
27 LL | impl Copy for EFoo { }
28    |               ^^^^
29
30 error[E0204]: the trait `Copy` may not be implemented for this type
31   --> $DIR/E0204.rs:19:10
32    |
33 LL | #[derive(Copy)]
34    |          ^^^^
35 LL | enum EFoo2<'a> {
36 LL |     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
41 error: aborting due to 4 previous errors
42
43 For more information about this error, try `rustc --explain E0204`.