]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/let_underscore_must_use.rs
[`excessive_bools`] lint trait functions even without bodies
[rust.git] / tests / ui / let_underscore_must_use.rs
index 7f481542fa73b2579257b83337bd57fd763c6d51..1edb77c748bfb715c0a3ddbcf2db2b19237238c7 100644 (file)
@@ -1,4 +1,5 @@
 #![warn(clippy::let_underscore_must_use)]
+#![allow(clippy::unnecessary_wraps)]
 
 // Debug implementations can fire this lint,
 // so we shouldn't lint external macros
@@ -25,7 +26,7 @@ fn h() -> u32 {
     0
 }
 
-struct S {}
+struct S;
 
 impl S {
     #[must_use]
@@ -88,4 +89,7 @@ fn main() {
     let _ = a.map(|_| ());
 
     let _ = a;
+
+    #[allow(clippy::let_underscore_must_use)]
+    let _ = a;
 }