Skip to content

Commit 46aa654

Browse files
committed
Fix test due to recent Rustup merge
1 parent 83f1abf commit 46aa654

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ui/needless_return.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,19 +85,19 @@ LL | return String::new();
8585
| ^^^^^^^^^^^^^^^^^^^^^ help: remove `return`: `String::new()`
8686

8787
error: unneeded `return` statement
88-
--> $DIR/needless_return.rs:91:32
88+
--> $DIR/needless_return.rs:106:32
8989
|
9090
LL | bar.unwrap_or_else(|_| return)
9191
| ^^^^^^ help: replace `return` with an empty block: `{}`
9292

9393
error: unneeded `return` statement
94-
--> $DIR/needless_return.rs:96:13
94+
--> $DIR/needless_return.rs:111:13
9595
|
9696
LL | return;
9797
| ^^^^^^^ help: remove `return`
9898

9999
error: unneeded `return` statement
100-
--> $DIR/needless_return.rs:98:20
100+
--> $DIR/needless_return.rs:113:20
101101
|
102102
LL | let _ = || return;
103103
| ^^^^^^ help: replace `return` with an empty block: `{}`

0 commit comments

Comments
 (0)