rust/tests/ui/derives/deriving-no-inner-impl-error-message.rs
2023-01-11 09:32:08 +00:00

15 lines
263 B
Rust

struct NoCloneOrEq;
#[derive(PartialEq)]
struct E {
x: NoCloneOrEq //~ ERROR binary operation `==` cannot be applied to type `NoCloneOrEq`
}
#[derive(Clone)]
struct C {
x: NoCloneOrEq
//~^ ERROR `NoCloneOrEq: Clone` is not satisfied
}
fn main() {}