]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/implicit_return.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / implicit_return.stderr
CommitLineData
f20569fa 1error: missing `return` statement
17df50a5 2 --> $DIR/implicit_return.rs:13:5
f20569fa
XL
3 |
4LL | true
5 | ^^^^ help: add `return` as shown: `return true`
6 |
7 = note: `-D clippy::implicit-return` implied by `-D warnings`
8
9error: missing `return` statement
10 --> $DIR/implicit_return.rs:17:15
11 |
12LL | if true { true } else { false }
13 | ^^^^ help: add `return` as shown: `return true`
14
15error: missing `return` statement
16 --> $DIR/implicit_return.rs:17:29
17 |
18LL | if true { true } else { false }
19 | ^^^^^ help: add `return` as shown: `return false`
20
21error: missing `return` statement
22 --> $DIR/implicit_return.rs:23:17
23 |
24LL | true => false,
25 | ^^^^^ help: add `return` as shown: `return false`
26
27error: missing `return` statement
28 --> $DIR/implicit_return.rs:24:20
29 |
30LL | false => { true },
31 | ^^^^ help: add `return` as shown: `return true`
32
33error: missing `return` statement
17df50a5 34 --> $DIR/implicit_return.rs:37:9
f20569fa
XL
35 |
36LL | break true;
37 | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
38
39error: missing `return` statement
17df50a5 40 --> $DIR/implicit_return.rs:44:13
f20569fa
XL
41 |
42LL | break true;
43 | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
44
45error: missing `return` statement
17df50a5 46 --> $DIR/implicit_return.rs:52:13
f20569fa
XL
47 |
48LL | break true;
49 | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
50
51error: missing `return` statement
17df50a5 52 --> $DIR/implicit_return.rs:70:18
f20569fa
XL
53 |
54LL | let _ = || { true };
55 | ^^^^ help: add `return` as shown: `return true`
56
57error: missing `return` statement
17df50a5 58 --> $DIR/implicit_return.rs:71:16
f20569fa
XL
59 |
60LL | let _ = || true;
61 | ^^^^ help: add `return` as shown: `return true`
62
63error: missing `return` statement
17df50a5 64 --> $DIR/implicit_return.rs:79:5
f20569fa
XL
65 |
66LL | format!("test {}", "test")
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add `return` as shown: `return format!("test {}", "test")`
68
17df50a5
XL
69error: missing `return` statement
70 --> $DIR/implicit_return.rs:88:5
71 |
72LL | m!(true, false)
73 | ^^^^^^^^^^^^^^^ help: add `return` as shown: `return m!(true, false)`
74
75error: missing `return` statement
76 --> $DIR/implicit_return.rs:94:13
77 |
78LL | break true;
79 | ^^^^^^^^^^ help: change `break` to `return` as shown: `return true`
80
81error: missing `return` statement
82 --> $DIR/implicit_return.rs:99:17
83 |
84LL | break 'outer false;
85 | ^^^^^^^^^^^^^^^^^^ help: change `break` to `return` as shown: `return false`
86
87error: missing `return` statement
88 --> $DIR/implicit_return.rs:114:5
89 |
90LL | / loop {
91LL | | m!(true);
92LL | | }
93 | |_____^
94 |
95help: add `return` as shown
96 |
97LL | return loop {
98LL | m!(true);
99LL | }
100 |
101
102error: missing `return` statement
103 --> $DIR/implicit_return.rs:128:5
104 |
105LL | true
106 | ^^^^ help: add `return` as shown: `return true`
107
108error: aborting due to 16 previous errors
f20569fa 109