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,
|
|
|
|
}
|
|
|
|
|
2017-01-03 21:54:12 +00:00
|
|
|
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-01-03 21:54:12 +00:00
|
|
|
|
2017-11-20 12:13:27 +00:00
|
|
|
#[derive(Copy)] //~ ERROR may not 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() {
|
|
|
|
}
|