Fix tests

This commit is contained in:
Barun Parruck 2025-05-15 21:23:28 +01:00
parent 73a19a0c67
commit e0fd8144c0
3 changed files with 5 additions and 7 deletions

View file

@ -3,6 +3,6 @@
fn main() {
if (true) {
// anything一些中文
//~^^ needless_return
//~^ needless_return
}
}

View file

@ -4,6 +4,6 @@ fn main() {
if (true) {
// anything一些中文
return;
//~^^ needless_return
//~^ needless_return
}
}

View file

@ -1,10 +1,8 @@
error: unneeded `return` statement
--> tests/ui/crashes/ice-12491.rs:5:24
--> tests/ui/crashes/ice-12491.rs:6:9
|
LL | // anything一些中文
| ____________________________^
LL | | return;
| |______________^
LL | return;
| ^^^^^^
|
= note: `-D clippy::needless-return` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_return)]`