Fix tests
This commit is contained in:
parent
73a19a0c67
commit
e0fd8144c0
3 changed files with 5 additions and 7 deletions
|
|
@ -3,6 +3,6 @@
|
|||
fn main() {
|
||||
if (true) {
|
||||
// anything一些中文
|
||||
//~^^ needless_return
|
||||
//~^ needless_return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ fn main() {
|
|||
if (true) {
|
||||
// anything一些中文
|
||||
return;
|
||||
//~^^ needless_return
|
||||
//~^ needless_return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)]`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue