]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/no_effect.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / no_effect.stderr
CommitLineData
f20569fa 1error: statement with no effect
fe692bf9 2 --> $DIR/no_effect.rs:98:5
f20569fa
XL
3 |
4LL | 0;
5 | ^^
6 |
7 = note: `-D clippy::no-effect` implied by `-D warnings`
781aab86 8 = help: to override `-D warnings` add `#[allow(clippy::no_effect)]`
f20569fa
XL
9
10error: statement with no effect
781aab86 11 --> $DIR/no_effect.rs:101:5
f20569fa
XL
12 |
13LL | s2;
14 | ^^^
15
16error: statement with no effect
781aab86 17 --> $DIR/no_effect.rs:103:5
f20569fa
XL
18 |
19LL | Unit;
20 | ^^^^^
21
22error: statement with no effect
781aab86 23 --> $DIR/no_effect.rs:105:5
f20569fa
XL
24 |
25LL | Tuple(0);
26 | ^^^^^^^^^
27
28error: statement with no effect
781aab86 29 --> $DIR/no_effect.rs:107:5
f20569fa
XL
30 |
31LL | Struct { field: 0 };
32 | ^^^^^^^^^^^^^^^^^^^^
33
34error: statement with no effect
781aab86 35 --> $DIR/no_effect.rs:109:5
f20569fa
XL
36 |
37LL | Struct { ..s };
38 | ^^^^^^^^^^^^^^^
39
40error: statement with no effect
781aab86 41 --> $DIR/no_effect.rs:111:5
f20569fa
XL
42 |
43LL | Union { a: 0 };
44 | ^^^^^^^^^^^^^^^
45
46error: statement with no effect
781aab86 47 --> $DIR/no_effect.rs:113:5
f20569fa
XL
48 |
49LL | Enum::Tuple(0);
50 | ^^^^^^^^^^^^^^^
51
52error: statement with no effect
781aab86 53 --> $DIR/no_effect.rs:115:5
f20569fa
XL
54 |
55LL | Enum::Struct { field: 0 };
56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
57
58error: statement with no effect
781aab86 59 --> $DIR/no_effect.rs:117:5
f20569fa
XL
60 |
61LL | 5 + 6;
62 | ^^^^^^
63
64error: statement with no effect
781aab86 65 --> $DIR/no_effect.rs:119:5
f20569fa
XL
66 |
67LL | *&42;
68 | ^^^^^
69
70error: statement with no effect
781aab86 71 --> $DIR/no_effect.rs:121:5
f20569fa
XL
72 |
73LL | &6;
74 | ^^^
75
76error: statement with no effect
781aab86 77 --> $DIR/no_effect.rs:123:5
f20569fa
XL
78 |
79LL | (5, 6, 7);
80 | ^^^^^^^^^^
81
82error: statement with no effect
781aab86 83 --> $DIR/no_effect.rs:125:5
f20569fa
XL
84 |
85LL | ..;
86 | ^^^
87
88error: statement with no effect
781aab86 89 --> $DIR/no_effect.rs:127:5
f20569fa
XL
90 |
91LL | 5..;
92 | ^^^^
93
94error: statement with no effect
781aab86 95 --> $DIR/no_effect.rs:129:5
f20569fa
XL
96 |
97LL | ..5;
98 | ^^^^
99
100error: statement with no effect
781aab86 101 --> $DIR/no_effect.rs:131:5
f20569fa
XL
102 |
103LL | 5..6;
104 | ^^^^^
105
94222f64 106error: statement with no effect
781aab86 107 --> $DIR/no_effect.rs:133:5
94222f64
XL
108 |
109LL | 5..=6;
110 | ^^^^^^
111
f20569fa 112error: statement with no effect
781aab86 113 --> $DIR/no_effect.rs:135:5
f20569fa
XL
114 |
115LL | [42, 55];
116 | ^^^^^^^^^
117
118error: statement with no effect
781aab86 119 --> $DIR/no_effect.rs:137:5
f20569fa
XL
120 |
121LL | [42, 55][1];
122 | ^^^^^^^^^^^^
123
124error: statement with no effect
781aab86 125 --> $DIR/no_effect.rs:139:5
f20569fa
XL
126 |
127LL | (42, 55).1;
128 | ^^^^^^^^^^^
129
130error: statement with no effect
781aab86 131 --> $DIR/no_effect.rs:141:5
f20569fa
XL
132 |
133LL | [42; 55];
134 | ^^^^^^^^^
135
136error: statement with no effect
781aab86 137 --> $DIR/no_effect.rs:143:5
f20569fa
XL
138 |
139LL | [42; 55][13];
140 | ^^^^^^^^^^^^^
141
142error: statement with no effect
781aab86 143 --> $DIR/no_effect.rs:146:5
f20569fa
XL
144 |
145LL | || x += 5;
146 | ^^^^^^^^^^
147
148error: statement with no effect
781aab86 149 --> $DIR/no_effect.rs:149:5
f20569fa
XL
150 |
151LL | FooString { s: s };
152 | ^^^^^^^^^^^^^^^^^^^
153
3c0e092e 154error: binding to `_` prefixed variable with no side-effect
781aab86 155 --> $DIR/no_effect.rs:151:5
3c0e092e
XL
156 |
157LL | let _unused = 1;
158 | ^^^^^^^^^^^^^^^^
159 |
160 = note: `-D clippy::no-effect-underscore-binding` implied by `-D warnings`
781aab86 161 = help: to override `-D warnings` add `#[allow(clippy::no_effect_underscore_binding)]`
3c0e092e
XL
162
163error: binding to `_` prefixed variable with no side-effect
781aab86 164 --> $DIR/no_effect.rs:154:5
3c0e092e
XL
165 |
166LL | let _penguin = || println!("Some helpful closure");
167 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
168
169error: binding to `_` prefixed variable with no side-effect
781aab86 170 --> $DIR/no_effect.rs:156:5
3c0e092e
XL
171 |
172LL | let _duck = Struct { field: 0 };
173 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
174
175error: binding to `_` prefixed variable with no side-effect
781aab86 176 --> $DIR/no_effect.rs:158:5
3c0e092e
XL
177 |
178LL | let _cat = [2, 4, 6, 8][2];
179 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
180
353b0b11 181error: aborting due to 29 previous errors
f20569fa 182