diff options
Diffstat (limited to 'tests/ui/or_fun_call.rs')
| -rw-r--r-- | tests/ui/or_fun_call.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ui/or_fun_call.rs b/tests/ui/or_fun_call.rs index ed346917819..d8a0ab033c4 100644 --- a/tests/ui/or_fun_call.rs +++ b/tests/ui/or_fun_call.rs @@ -373,7 +373,6 @@ fn fn_call_in_nested_expr() { } let opt: Option<i32> = Some(1); - let _ = opt.unwrap_or({ f() }); // suggest `.unwrap_or_else(f)` //~^ or_fun_call // @@ -383,7 +382,7 @@ fn fn_call_in_nested_expr() { // let _ = opt.unwrap_or({ - //~^ or_fun_call + //~^ or_fun_call let x = f(); x + 1 }); |
