rust/tests/ui/span/E0204.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
460 B
Rust
Raw Normal View History

2016-08-03 23:51:52 +00:00
struct Foo {
foo: Vec<u32>,
}
2017-11-20 12:13:27 +00:00
impl Copy for Foo { } //~ ERROR may not be implemented for this type
2016-08-03 23:51:52 +00:00
2017-11-20 12:13:27 +00:00
#[derive(Copy)] //~ ERROR may not be implemented for this type
2016-08-03 23:51:52 +00:00
struct Foo2<'a> {
ty: &'a mut bool,
}
enum EFoo {
Bar { x: Vec<u32> },
Baz,
}
2017-11-20 12:13:27 +00:00
impl Copy for EFoo { } //~ ERROR may not be implemented for this type
2017-11-20 12:13:27 +00:00
#[derive(Copy)] //~ ERROR may not be implemented for this type
enum EFoo2<'a> {
Bar(&'a mut bool),
Baz,
}
2016-08-03 23:51:52 +00:00
fn main() {
}