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