2018-12-04 18:59:09 -06:00
|
|
|
error: missing return statement
|
2018-12-05 07:39:09 -06:00
|
|
|
--> $DIR/implicit_return.rs:21:5
|
2018-12-04 18:59:09 -06:00
|
|
|
|
|
|
|
|
21 | true
|
|
|
|
| ^^^^ help: add `return` as shown: `return true`
|
|
|
|
|
|
2018-12-05 07:39:09 -06:00
|
|
|
= note: `-D clippy::implicit-return` implied by `-D warnings`
|
2018-12-04 18:59:09 -06:00
|
|
|
|
|
|
|
error: missing return statement
|
2018-12-05 07:39:09 -06:00
|
|
|
--> $DIR/implicit_return.rs:27:9
|
2018-12-04 18:59:09 -06:00
|
|
|
|
|
|
|
|
27 | true
|
|
|
|
| ^^^^ help: add `return` as shown: `return true`
|
|
|
|
|
|
|
|
error: missing return statement
|
2018-12-05 07:39:09 -06:00
|
|
|
--> $DIR/implicit_return.rs:29:9
|
2018-12-04 18:59:09 -06:00
|
|
|
|
|
|
|
|
29 | false
|
|
|
|
| ^^^^^ help: add `return` as shown: `return false`
|
|
|
|
|
|
|
|
error: missing return statement
|
2018-12-05 07:39:09 -06:00
|
|
|
--> $DIR/implicit_return.rs:36:17
|
2018-12-04 18:59:09 -06:00
|
|
|
|
|
|
|
|
36 | true => false,
|
|
|
|
| ^^^^^ help: add `return` as shown: `return false`
|
|
|
|
|
|
|
|
error: missing return statement
|
2018-12-05 07:39:09 -06:00
|
|
|
--> $DIR/implicit_return.rs:38:13
|
2018-12-04 18:59:09 -06:00
|
|
|
|
|
|
|
|
38 | true
|
|
|
|
| ^^^^ help: add `return` as shown: `return true`
|
|
|
|
|
2018-12-06 05:22:54 -06:00
|
|
|
error: missing return statement
|
|
|
|
--> $DIR/implicit_return.rs:46:9
|
|
|
|
|
|
|
|
|
46 | break true;
|
|
|
|
| ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
|
|
|
|
|
2018-12-04 18:59:09 -06:00
|
|
|
error: missing return statement
|
2018-12-05 07:39:09 -06:00
|
|
|
--> $DIR/implicit_return.rs:52:9
|
2018-12-04 18:59:09 -06:00
|
|
|
|
|
2018-12-05 07:39:09 -06:00
|
|
|
52 | true
|
2018-12-04 18:59:09 -06:00
|
|
|
| ^^^^ help: add `return` as shown: `return true`
|
|
|
|
|
|
|
|
error: missing return statement
|
2018-12-05 07:39:09 -06:00
|
|
|
--> $DIR/implicit_return.rs:54:16
|
2018-12-04 18:59:09 -06:00
|
|
|
|
|
2018-12-05 07:39:09 -06:00
|
|
|
54 | let _ = || true;
|
2018-12-04 18:59:09 -06:00
|
|
|
| ^^^^ help: add `return` as shown: `return true`
|
|
|
|
|
2018-12-06 05:22:54 -06:00
|
|
|
error: aborting due to 8 previous errors
|
2018-12-04 18:59:09 -06:00
|
|
|
|