rust/tests/ui/derives/deriving-no-inner-impl-error-message.rs

15 lines
263 B
Rust
Raw Normal View History

struct NoCloneOrEq;
#[derive(PartialEq)]
struct E {
2014-11-03 13:55:19 -06:00
x: NoCloneOrEq //~ ERROR binary operation `==` cannot be applied to type `NoCloneOrEq`
}
#[derive(Clone)]
struct C {
2014-11-03 11:51:21 -06:00
x: NoCloneOrEq
//~^ ERROR `NoCloneOrEq: Clone` is not satisfied
}
fn main() {}