]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/useless_asref.rs
Auto merge of #6298 - JohnTitor:fix-example, r=llogiq
[rust.git] / tests / ui / useless_asref.rs
index fe3dae5fc4c1079f39cd113bdf2f1821087a4475..2a80291f5d837b4614de012ac60f9fb1d2b9b256 100644 (file)
@@ -1,5 +1,7 @@
+// run-rustfix
+
 #![deny(clippy::useless_asref)]
-#![allow(clippy::trivially_copy_pass_by_ref)]
+
 use std::fmt::Debug;
 
 struct FakeAsRef;
@@ -65,6 +67,7 @@ fn not_ok() {
         foo_rslice(mrrrrrslice.as_ref());
         foo_rslice(mrrrrrslice);
     }
+    #[allow(unused_parens, clippy::double_parens)]
     foo_rrrrmr((&&&&MoreRef).as_ref());
 
     generic_not_ok(mrslice);