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
456 B
Rust
Raw Normal View History

2016-08-03 23:51:52 +00:00
struct Foo {
foo: Vec<u32>,
}
2023-03-07 23:55:51 +00:00
impl Copy for Foo { } //~ ERROR cannot be implemented for this type
2016-08-03 23:51:52 +00:00
2023-03-07 23:55:51 +00:00
#[derive(Copy)] //~ ERROR cannot 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,
}
2023-03-07 23:55:51 +00:00
impl Copy for EFoo { } //~ ERROR cannot be implemented for this type
2023-03-07 23:55:51 +00:00
#[derive(Copy)] //~ ERROR cannot be implemented for this type
enum EFoo2<'a> {
Bar(&'a mut bool),
Baz,
}
2016-08-03 23:51:52 +00:00
fn main() {
}