2017-02-07 14:05:30 -06:00
|
|
|
error: unneeded return statement
|
|
|
|
--> $DIR/needless_return.rs:11:5
|
|
|
|
|
|
|
|
|
11 | return true;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/needless_return.rs:4:9
|
|
|
|
|
|
|
|
|
4 | #![deny(needless_return)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unneeded return statement
|
|
|
|
--> $DIR/needless_return.rs:18:5
|
|
|
|
|
|
|
|
|
18 | return true
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^^^ help: remove `return` as shown: `true`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: unneeded return statement
|
|
|
|
--> $DIR/needless_return.rs:26:9
|
|
|
|
|
|
|
|
|
26 | return true;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: unneeded return statement
|
|
|
|
--> $DIR/needless_return.rs:31:9
|
|
|
|
|
|
|
|
|
31 | return false;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^^^^^ help: remove `return` as shown: `false`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: unneeded return statement
|
|
|
|
--> $DIR/needless_return.rs:40:17
|
|
|
|
|
|
|
|
|
40 | true => return false,
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `false`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: unneeded return statement
|
|
|
|
--> $DIR/needless_return.rs:46:13
|
|
|
|
|
|
|
|
|
46 | return true;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: unneeded return statement
|
|
|
|
--> $DIR/needless_return.rs:56:9
|
|
|
|
|
|
|
|
|
56 | return true;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^^^^ help: remove `return` as shown: `true`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: unneeded return statement
|
|
|
|
--> $DIR/needless_return.rs:61:16
|
|
|
|
|
|
|
|
|
61 | let _ = || return true;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^^^ help: remove `return` as shown: `true`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|