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