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