mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
19 lines
517 B
Text
19 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
|
|
|