]> git.lizzy.rs Git - rust.git/blob - src/test/ui/derives/deriving-no-inner-impl-error-message.rs
Auto merge of #106025 - matthiaskrgr:rollup-vz5rqah, r=matthiaskrgr
[rust.git] / src / test / ui / derives / deriving-no-inner-impl-error-message.rs
1 struct NoCloneOrEq;
2
3 #[derive(PartialEq)]
4 struct E {
5     x: NoCloneOrEq //~ ERROR binary operation `==` cannot be applied to type `NoCloneOrEq`
6 }
7 #[derive(Clone)]
8 struct C {
9     x: NoCloneOrEq
10     //~^ ERROR `NoCloneOrEq: Clone` is not satisfied
11 }
12
13
14 fn main() {}