1 error: statement with no effect
2 --> $DIR/no_effect.rs:65:5
7 = note: `-D clippy::no-effect` implied by `-D warnings`
9 error: statement with no effect
10 --> $DIR/no_effect.rs:66:5
15 error: statement with no effect
16 --> $DIR/no_effect.rs:67:5
21 error: statement with no effect
22 --> $DIR/no_effect.rs:68:5
27 error: statement with no effect
28 --> $DIR/no_effect.rs:69:5
30 LL | Struct { field: 0 };
31 | ^^^^^^^^^^^^^^^^^^^^
33 error: statement with no effect
34 --> $DIR/no_effect.rs:70:5
39 error: statement with no effect
40 --> $DIR/no_effect.rs:71:5
45 error: statement with no effect
46 --> $DIR/no_effect.rs:72:5
51 error: statement with no effect
52 --> $DIR/no_effect.rs:73:5
54 LL | Enum::Struct { field: 0 };
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
57 error: statement with no effect
58 --> $DIR/no_effect.rs:74:5
63 error: statement with no effect
64 --> $DIR/no_effect.rs:75:5
69 error: statement with no effect
70 --> $DIR/no_effect.rs:76:5
75 error: statement with no effect
76 --> $DIR/no_effect.rs:77:5
81 error: statement with no effect
82 --> $DIR/no_effect.rs:78:5
87 error: statement with no effect
88 --> $DIR/no_effect.rs:79:5
93 error: statement with no effect
94 --> $DIR/no_effect.rs:80:5
99 error: statement with no effect
100 --> $DIR/no_effect.rs:81:5
105 error: statement with no effect
106 --> $DIR/no_effect.rs:82:5
111 error: statement with no effect
112 --> $DIR/no_effect.rs:83:5
117 error: statement with no effect
118 --> $DIR/no_effect.rs:84:5
123 error: statement with no effect
124 --> $DIR/no_effect.rs:85:5
129 error: statement with no effect
130 --> $DIR/no_effect.rs:86:5
135 error: statement with no effect
136 --> $DIR/no_effect.rs:87:5
141 error: statement with no effect
142 --> $DIR/no_effect.rs:88:5
147 error: statement with no effect
148 --> $DIR/no_effect.rs:90:5
153 error: statement with no effect
154 --> $DIR/no_effect.rs:92:5
156 LL | FooString { s: s };
157 | ^^^^^^^^^^^^^^^^^^^
159 error: binding to `_` prefixed variable with no side-effect
160 --> $DIR/no_effect.rs:93: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:94: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:95:5
176 LL | let _duck = Struct { field: 0 };
177 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
179 error: binding to `_` prefixed variable with no side-effect
180 --> $DIR/no_effect.rs:96:5
182 LL | let _cat = [2, 4, 6, 8][2];
183 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
185 error: aborting due to 30 previous errors