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