]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/partialeq_ne_impl.rs
iterate List by value
[rust.git] / tests / ui / partialeq_ne_impl.rs
index 9ee1f48b01c59c43999e00adae8ef713cc5c58b2..1338d3c74d5540117bb54666b5fa35ce56ed1a25 100644 (file)
@@ -1,15 +1,26 @@
-#![feature(plugin)]
-#![plugin(clippy)]
-
-#![deny(warnings)]
 #![allow(dead_code)]
 
 struct Foo;
 
 impl PartialEq for Foo {
-    fn eq(&self, _: &Foo) -> bool { true }
-    fn ne(&self, _: &Foo) -> bool { false }
+    fn eq(&self, _: &Foo) -> bool {
+        true
+    }
+    fn ne(&self, _: &Foo) -> bool {
+        false
+    }
+}
+
+struct Bar;
 
+impl PartialEq for Bar {
+    fn eq(&self, _: &Bar) -> bool {
+        true
+    }
+    #[allow(clippy::partialeq_ne_impl)]
+    fn ne(&self, _: &Bar) -> bool {
+        false
+    }
 }
 
 fn main() {}