rust/tests/ui/issues/issue-27340.rs

8 lines
171 B
Rust
Raw Normal View History

2016-02-28 11:25:26 +00:00
struct Foo;
#[derive(Copy, Clone)]
2023-03-07 23:55:51 +00:00
//~^ ERROR the trait `Copy` cannot be implemented for this type
2016-02-28 11:25:26 +00:00
struct Bar(Foo);
//~^ ERROR `Foo: Clone` is not satisfied
2016-02-28 11:25:26 +00:00
fn main() {}