mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-30 06:53:27 +00:00
20 lines
517 B
Text
20 lines
517 B
Text
|
error: unneeded `return` statement
|
||
|
--> tests/ui/crashes/ice-12491.rs:5:24
|
||
|
|
|
||
|
LL | // anything一些中文
|
||
|
| ____________________________^
|
||
|
LL | | return;
|
||
|
| |______________^
|
||
|
|
|
||
|
= note: `-D clippy::needless-return` implied by `-D warnings`
|
||
|
= help: to override `-D warnings` add `#[allow(clippy::needless_return)]`
|
||
|
help: remove `return`
|
||
|
|
|
||
|
LL - // anything一些中文
|
||
|
LL - return;
|
||
|
LL + // anything一些中文
|
||
|
|
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|