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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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() {}