rust/tests/ui/needless_return.stderr

53 lines
1.4 KiB
Plaintext
Raw Normal View History

error: unneeded return statement
2017-08-01 10:54:21 -05:00
--> $DIR/needless_return.rs:11:5
|
11 | return true;
2017-07-24 09:28:41 -05:00
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
= note: `-D clippy::needless-return` implied by `-D warnings`
error: unneeded return statement
2017-08-01 10:54:21 -05:00
--> $DIR/needless_return.rs:15:5
|
15 | return true
2017-07-24 09:28:41 -05:00
| ^^^^^^^^^^^ help: remove `return` as shown: `true`
error: unneeded return statement
2017-08-01 10:54:21 -05:00
--> $DIR/needless_return.rs:20:9
|
20 | return true;
2017-07-24 09:28:41 -05:00
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
error: unneeded return statement
2017-08-01 10:54:21 -05:00
--> $DIR/needless_return.rs:22:9
|
22 | return false;
2017-07-24 09:28:41 -05:00
| ^^^^^^^^^^^^^ help: remove `return` as shown: `false`
error: unneeded return statement
2017-08-01 10:54:21 -05:00
--> $DIR/needless_return.rs:28:17
|
28 | true => return false,
2017-07-24 09:28:41 -05:00
| ^^^^^^^^^^^^ help: remove `return` as shown: `false`
error: unneeded return statement
2017-08-01 10:54:21 -05:00
--> $DIR/needless_return.rs:30:13
|
30 | return true;
2017-07-24 09:28:41 -05:00
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
error: unneeded return statement
2017-08-01 10:54:21 -05:00
--> $DIR/needless_return.rs:37:9
|
37 | return true;
2017-07-24 09:28:41 -05:00
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
error: unneeded return statement
2017-08-01 10:54:21 -05:00
--> $DIR/needless_return.rs:39:16
|
39 | let _ = || return true;
2017-07-24 09:28:41 -05:00
| ^^^^^^^^^^^ help: remove `return` as shown: `true`
2018-01-16 10:06:27 -06:00
error: aborting due to 8 previous errors