]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/redundant_closure_call_early.rs
Rollup merge of #88361 - WaffleLapkin:patch-2, r=jyn514
[rust.git] / src / tools / clippy / tests / ui / redundant_closure_call_early.rs
index 3dd365620ccbf1b4f4eef131819ce9da695f84dd..5649d8dd14c4899fde03e7a75d78bf5309aa4728 100644 (file)
@@ -15,5 +15,6 @@ fn main() {
     #[allow(clippy::needless_return)]
     (|| return 2)();
     (|| -> Option<i32> { None? })();
+    #[allow(clippy::try_err)]
     (|| -> Result<i32, i32> { Err(2)? })();
 }