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