rust/tests/ui/implicit_return.stderr

47 lines
1.2 KiB
Plaintext
Raw Normal View History

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