1 error: statement with no effect
2 --> $DIR/no_effect.rs:95:5
7 = note: `-D clippy::no-effect` implied by `-D warnings`
9 error: statement with no effect
10 --> $DIR/no_effect.rs:96:5
15 error: statement with no effect
16 --> $DIR/no_effect.rs:97:5
21 error: statement with no effect
22 --> $DIR/no_effect.rs:98:5
27 error: statement with no effect
28 --> $DIR/no_effect.rs:99:5
30 LL | Struct { field: 0 };
31 | ^^^^^^^^^^^^^^^^^^^^
33 error: statement with no effect
34 --> $DIR/no_effect.rs:100:5
39 error: statement with no effect
40 --> $DIR/no_effect.rs:101:5
45 error: statement with no effect
46 --> $DIR/no_effect.rs:102:5
51 error: statement with no effect
52 --> $DIR/no_effect.rs:103:5
54 LL | Enum::Struct { field: 0 };
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
57 error: statement with no effect
58 --> $DIR/no_effect.rs:104:5
63 error: statement with no effect
64 --> $DIR/no_effect.rs:105:5
69 error: statement with no effect
70 --> $DIR/no_effect.rs:106:5
75 error: statement with no effect
76 --> $DIR/no_effect.rs:107:5
81 error: statement with no effect
82 --> $DIR/no_effect.rs:108:5
87 error: statement with no effect
88 --> $DIR/no_effect.rs:109:5
93 error: statement with no effect
94 --> $DIR/no_effect.rs:110:5
99 error: statement with no effect
100 --> $DIR/no_effect.rs:111:5
105 error: statement with no effect
106 --> $DIR/no_effect.rs:112:5
111 error: statement with no effect
112 --> $DIR/no_effect.rs:113:5
117 error: statement with no effect
118 --> $DIR/no_effect.rs:114:5
123 error: statement with no effect
124 --> $DIR/no_effect.rs:115:5
129 error: statement with no effect
130 --> $DIR/no_effect.rs:116:5
135 error: statement with no effect
136 --> $DIR/no_effect.rs:117:5
141 error: statement with no effect
142 --> $DIR/no_effect.rs:118:5
147 error: statement with no effect
148 --> $DIR/no_effect.rs:120:5
153 error: statement with no effect
154 --> $DIR/no_effect.rs:122:5
156 LL | FooString { s: s };
157 | ^^^^^^^^^^^^^^^^^^^
159 error: binding to `_` prefixed variable with no side-effect
160 --> $DIR/no_effect.rs:123:5
162 LL | let _unused = 1;
165 = note: `-D clippy::no-effect-underscore-binding` implied by `-D warnings`
167 error: binding to `_` prefixed variable with no side-effect
168 --> $DIR/no_effect.rs:124:5
170 LL | let _penguin = || println!("Some helpful closure");
171 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
173 error: binding to `_` prefixed variable with no side-effect
174 --> $DIR/no_effect.rs:125:5
176 LL | let _duck = Struct { field: 0 };
177 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
179 error: binding to `_` prefixed variable with no side-effect
180 --> $DIR/no_effect.rs:126:5
182 LL | let _cat = [2, 4, 6, 8][2];
183 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
185 error: aborting due to 30 previous errors