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