rust/tests/ui/needless_return.stderr

53 lines
1.4 KiB
Plaintext
Raw Normal View History

error: unneeded return statement
2018-10-06 18:18:06 +02:00
--> $DIR/needless_return.rs:21:5
|
2018-10-06 18:18:06 +02:00
21 | return true;
2017-07-24 16:28:41 +02:00
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
= note: `-D clippy::needless-return` implied by `-D warnings`
error: unneeded return statement
2018-10-06 18:18:06 +02:00
--> $DIR/needless_return.rs:25:5
|
2018-10-06 18:18:06 +02:00
25 | return true
2017-07-24 16:28:41 +02:00
| ^^^^^^^^^^^ help: remove `return` as shown: `true`
error: unneeded return statement
2018-10-06 18:18:06 +02:00
--> $DIR/needless_return.rs:30:9
|
2018-10-06 18:18:06 +02:00
30 | return true;
2017-07-24 16:28:41 +02:00
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
error: unneeded return statement
2018-10-06 18:18:06 +02:00
--> $DIR/needless_return.rs:32:9
|
2018-10-06 18:18:06 +02:00
32 | return false;
2017-07-24 16:28:41 +02:00
| ^^^^^^^^^^^^^ help: remove `return` as shown: `false`
error: unneeded return statement
2018-10-06 18:18:06 +02:00
--> $DIR/needless_return.rs:38:17
|
2018-10-06 18:18:06 +02:00
38 | true => return false,
2017-07-24 16:28:41 +02:00
| ^^^^^^^^^^^^ help: remove `return` as shown: `false`
error: unneeded return statement
2018-10-06 18:18:06 +02:00
--> $DIR/needless_return.rs:40:13
|
2018-10-06 18:18:06 +02:00
40 | return true;
2017-07-24 16:28:41 +02:00
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
error: unneeded return statement
2018-10-06 18:18:06 +02:00
--> $DIR/needless_return.rs:47:9
|
2018-10-06 18:18:06 +02:00
47 | return true;
2017-07-24 16:28:41 +02:00
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
error: unneeded return statement
2018-10-06 18:18:06 +02:00
--> $DIR/needless_return.rs:49:16
|
2018-10-06 18:18:06 +02:00
49 | let _ = || return true;
2017-07-24 16:28:41 +02:00
| ^^^^^^^^^^^ help: remove `return` as shown: `true`
2018-01-16 17:06:27 +01:00
error: aborting due to 8 previous errors