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