]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/no_effect_return.stderr
New upstream version 1.72.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / no_effect_return.stderr
1 error: statement with no effect
2 --> $DIR/no_effect_return.rs:8:9
3 |
4 LL | 0u32;
5 | -^^^^
6 | |
7 | help: did you mean to return it?: `return`
8 |
9 = note: `-D clippy::no-effect` implied by `-D warnings`
10
11 error: statement with no effect
12 --> $DIR/no_effect_return.rs:15:9
13 |
14 LL | 0u32;
15 | -^^^^
16 | |
17 | help: did you mean to return it?: `return`
18
19 error: statement with no effect
20 --> $DIR/no_effect_return.rs:23:9
21 |
22 LL | 0i32 as C;
23 | -^^^^^^^^^
24 | |
25 | help: did you mean to return it?: `return`
26
27 error: statement with no effect
28 --> $DIR/no_effect_return.rs:31:9
29 |
30 LL | 0u128;
31 | ^^^^^^
32
33 error: statement with no effect
34 --> $DIR/no_effect_return.rs:40:9
35 |
36 LL | 0u16;
37 | ^^^^^
38
39 error: statement with no effect
40 --> $DIR/no_effect_return.rs:47:9
41 |
42 LL | [1u16];
43 | -^^^^^^
44 | |
45 | help: did you mean to return it?: `return`
46
47 error: statement with no effect
48 --> $DIR/no_effect_return.rs:54:9
49 |
50 LL | ControlFlow::Break::<()>(());
51 | -^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 | |
53 | help: did you mean to return it?: `return`
54
55 error: statement with no effect
56 --> $DIR/no_effect_return.rs:70:9
57 |
58 LL | ();
59 | -^^
60 | |
61 | help: did you mean to return it?: `return`
62
63 error: statement with no effect
64 --> $DIR/no_effect_return.rs:78:9
65 |
66 LL | ();
67 | ^^^
68
69 error: aborting due to 9 previous errors
70