11error: missing `return` statement
2- --> $DIR/implicit_return.rs:12 :5
2+ --> $DIR/implicit_return.rs:13 :5
33 |
44LL | true
55 | ^^^^ help: add `return` as shown: `return true`
66 |
77 = note: `-D clippy::implicit-return` implied by `-D warnings`
88
99error: missing `return` statement
10- --> $DIR/implicit_return.rs:16 :15
10+ --> $DIR/implicit_return.rs:17 :15
1111 |
1212LL | if true { true } else { false }
1313 | ^^^^ help: add `return` as shown: `return true`
1414
1515error: missing `return` statement
16- --> $DIR/implicit_return.rs:16 :29
16+ --> $DIR/implicit_return.rs:17 :29
1717 |
1818LL | if true { true } else { false }
1919 | ^^^^^ help: add `return` as shown: `return false`
2020
2121error: missing `return` statement
22- --> $DIR/implicit_return.rs:22 :17
22+ --> $DIR/implicit_return.rs:23 :17
2323 |
2424LL | true => false,
2525 | ^^^^^ help: add `return` as shown: `return false`
2626
2727error: missing `return` statement
28- --> $DIR/implicit_return.rs:23 :20
28+ --> $DIR/implicit_return.rs:24 :20
2929 |
3030LL | false => { true },
3131 | ^^^^ help: add `return` as shown: `return true`
3232
3333error: missing `return` statement
34- --> $DIR/implicit_return.rs:36 :9
34+ --> $DIR/implicit_return.rs:37 :9
3535 |
3636LL | break true;
3737 | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
3838
3939error: missing `return` statement
40- --> $DIR/implicit_return.rs:43 :13
40+ --> $DIR/implicit_return.rs:44 :13
4141 |
4242LL | break true;
4343 | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
4444
4545error: missing `return` statement
46- --> $DIR/implicit_return.rs:51 :13
46+ --> $DIR/implicit_return.rs:52 :13
4747 |
4848LL | break true;
4949 | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
5050
5151error: missing `return` statement
52- --> $DIR/implicit_return.rs:69 :18
52+ --> $DIR/implicit_return.rs:70 :18
5353 |
5454LL | let _ = || { true };
5555 | ^^^^ help: add `return` as shown: `return true`
5656
5757error: missing `return` statement
58- --> $DIR/implicit_return.rs:70 :16
58+ --> $DIR/implicit_return.rs:71 :16
5959 |
6060LL | let _ = || true;
6161 | ^^^^ help: add `return` as shown: `return true`
6262
6363error: missing `return` statement
64- --> $DIR/implicit_return.rs:78 :5
64+ --> $DIR/implicit_return.rs:79 :5
6565 |
6666LL | format!("test {}", "test")
6767 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add `return` as shown: `return format!("test {}", "test")`
6868
6969error: missing `return` statement
70- --> $DIR/implicit_return.rs:87 :5
70+ --> $DIR/implicit_return.rs:88 :5
7171 |
7272LL | m!(true, false)
7373 | ^^^^^^^^^^^^^^^ help: add `return` as shown: `return m!(true, false)`
7474
7575error: missing `return` statement
76- --> $DIR/implicit_return.rs:93 :13
76+ --> $DIR/implicit_return.rs:94 :13
7777 |
7878LL | break true;
7979 | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
8080
8181error: missing `return` statement
82- --> $DIR/implicit_return.rs:98 :17
82+ --> $DIR/implicit_return.rs:99 :17
8383 |
8484LL | break 'outer false;
8585 | ^^^^^^^^^^^^^^^^^^ help: change `break` to `return` as shown: `return false`
8686
8787error: missing `return` statement
88- --> $DIR/implicit_return.rs:113 :5
88+ --> $DIR/implicit_return.rs:114 :5
8989 |
9090LL | / loop {
9191LL | | m!(true);
@@ -99,5 +99,11 @@ LL | m!(true);
9999LL | }
100100 |
101101
102- error: aborting due to 15 previous errors
102+ error: missing `return` statement
103+ --> $DIR/implicit_return.rs:128:5
104+ |
105+ LL | true
106+ | ^^^^ help: add `return` as shown: `return true`
107+
108+ error: aborting due to 16 previous errors
103109
0 commit comments