2016-08-03 18:51:52 -05:00
|
|
|
struct Foo {
|
|
|
|
foo: Vec<u32>,
|
|
|
|
}
|
|
|
|
|
2023-03-07 17:55:51 -06:00
|
|
|
impl Copy for Foo { } //~ ERROR cannot be implemented for this type
|
2016-08-03 18:51:52 -05:00
|
|
|
|
2023-03-07 17:55:51 -06:00
|
|
|
#[derive(Copy)] //~ ERROR cannot be implemented for this type
|
2016-08-03 18:51:52 -05:00
|
|
|
struct Foo2<'a> {
|
|
|
|
ty: &'a mut bool,
|
|
|
|
}
|
|
|
|
|
2017-01-03 15:54:12 -06:00
|
|
|
enum EFoo {
|
|
|
|
Bar { x: Vec<u32> },
|
|
|
|
Baz,
|
|
|
|
}
|
|
|
|
|
2023-03-07 17:55:51 -06:00
|
|
|
impl Copy for EFoo { } //~ ERROR cannot be implemented for this type
|
2017-01-03 15:54:12 -06:00
|
|
|
|
2023-03-07 17:55:51 -06:00
|
|
|
#[derive(Copy)] //~ ERROR cannot be implemented for this type
|
2017-01-03 15:54:12 -06:00
|
|
|
enum EFoo2<'a> {
|
|
|
|
Bar(&'a mut bool),
|
|
|
|
Baz,
|
|
|
|
}
|
|
|
|
|
2016-08-03 18:51:52 -05:00
|
|
|
fn main() {
|
|
|
|
}
|