]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: missing `return` statement |
2 | --> $DIR/implicit_return.rs:12:5 | |
3 | | | |
4 | LL | true | |
5 | | ^^^^ help: add `return` as shown: `return true` | |
6 | | | |
7 | = note: `-D clippy::implicit-return` implied by `-D warnings` | |
8 | ||
9 | error: missing `return` statement | |
10 | --> $DIR/implicit_return.rs:17:15 | |
11 | | | |
12 | LL | if true { true } else { false } | |
13 | | ^^^^ help: add `return` as shown: `return true` | |
14 | ||
15 | error: missing `return` statement | |
16 | --> $DIR/implicit_return.rs:17:29 | |
17 | | | |
18 | LL | if true { true } else { false } | |
19 | | ^^^^^ help: add `return` as shown: `return false` | |
20 | ||
21 | error: missing `return` statement | |
22 | --> $DIR/implicit_return.rs:23:17 | |
23 | | | |
24 | LL | true => false, | |
25 | | ^^^^^ help: add `return` as shown: `return false` | |
26 | ||
27 | error: missing `return` statement | |
28 | --> $DIR/implicit_return.rs:24:20 | |
29 | | | |
30 | LL | false => { true }, | |
31 | | ^^^^ help: add `return` as shown: `return true` | |
32 | ||
33 | error: missing `return` statement | |
34 | --> $DIR/implicit_return.rs:39:9 | |
35 | | | |
36 | LL | break true; | |
37 | | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true` | |
38 | ||
39 | error: missing `return` statement | |
40 | --> $DIR/implicit_return.rs:47:13 | |
41 | | | |
42 | LL | break true; | |
43 | | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true` | |
44 | ||
45 | error: missing `return` statement | |
46 | --> $DIR/implicit_return.rs:56:13 | |
47 | | | |
48 | LL | break true; | |
49 | | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true` | |
50 | ||
51 | error: missing `return` statement | |
52 | --> $DIR/implicit_return.rs:74:18 | |
53 | | | |
54 | LL | let _ = || { true }; | |
55 | | ^^^^ help: add `return` as shown: `return true` | |
56 | ||
57 | error: missing `return` statement | |
58 | --> $DIR/implicit_return.rs:75:16 | |
59 | | | |
60 | LL | let _ = || true; | |
61 | | ^^^^ help: add `return` as shown: `return true` | |
62 | ||
63 | error: missing `return` statement | |
64 | --> $DIR/implicit_return.rs:83:5 | |
65 | | | |
66 | LL | format!("test {}", "test") | |
67 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add `return` as shown: `return format!("test {}", "test")` | |
68 | ||
69 | error: aborting due to 11 previous errors | |
70 |