]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/E0204.rs
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / E0204.rs
1 struct Foo {
2     foo: Vec<u32>,
3 }
4
5 impl Copy for Foo { } //~ ERROR may not be implemented for this type
6
7 #[derive(Copy)] //~ ERROR may not be implemented for this type
8 struct Foo2<'a> {
9     ty: &'a mut bool,
10 }
11
12 enum EFoo {
13     Bar { x: Vec<u32> },
14     Baz,
15 }
16
17 impl Copy for EFoo { } //~ ERROR may not be implemented for this type
18
19 #[derive(Copy)] //~ ERROR may not be implemented for this type
20 enum EFoo2<'a> {
21     Bar(&'a mut bool),
22     Baz,
23 }
24
25 fn main() {
26 }