summaryrefslogtreecommitdiffstats
path: root/tests/ui/derives/deriving-no-inner-impl-error-message.rs
blob: b3ce31bf0d356bb2df64ec92bee2718180fa11a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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() {}