]> git.lizzy.rs Git - rust.git/blob - tests/ui/partialeq_ne_impl.rs
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / partialeq_ne_impl.rs
1 #![allow(dead_code)]
2
3 struct Foo;
4
5 impl PartialEq for Foo {
6     fn eq(&self, _: &Foo) -> bool {
7         true
8     }
9     fn ne(&self, _: &Foo) -> bool {
10         false
11     }
12 }
13
14 struct Bar;
15
16 impl PartialEq for Bar {
17     fn eq(&self, _: &Bar) -> bool {
18         true
19     }
20     #[allow(clippy::partialeq_ne_impl)]
21     fn ne(&self, _: &Bar) -> bool {
22         false
23     }
24 }
25
26 fn main() {}