]> git.lizzy.rs Git - rust.git/blob - tests/ui/implicit_return.stderr
632e30cbdc6e075c9b350a56762034d8e1871ad3
[rust.git] / tests / ui / implicit_return.stderr
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:16: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:16: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:22: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:23: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:36: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:43: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:51: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:69: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:70: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:78:5
65    |
66 LL |     format!("test {}", "test")
67    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add `return` as shown: `return format!("test {}", "test")`
68
69 error: missing `return` statement
70   --> $DIR/implicit_return.rs:87:5
71    |
72 LL |     m!(true, false)
73    |     ^^^^^^^^^^^^^^^ help: add `return` as shown: `return m!(true, false)`
74
75 error: missing `return` statement
76   --> $DIR/implicit_return.rs:93:13
77    |
78 LL |             break true;
79    |             ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
80
81 error: missing `return` statement
82   --> $DIR/implicit_return.rs:98:17
83    |
84 LL |                 break 'outer false;
85    |                 ^^^^^^^^^^^^^^^^^^ help: change `break` to `return` as shown: `return false`
86
87 error: missing `return` statement
88   --> $DIR/implicit_return.rs:113:5
89    |
90 LL | /     loop {
91 LL | |         m!(true);
92 LL | |     }
93    | |_____^
94    |
95 help: add `return` as shown
96    |
97 LL |     return loop {
98 LL |         m!(true);
99 LL |     }
100    |
101
102 error: aborting due to 15 previous errors
103