File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
rust/ql/test/query-tests/unusedentities Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 2
2
| main.rs:90:13:90:13 | d | Variable is not used. |
3
3
| main.rs:141:5:141:5 | y | Variable is not used. |
4
4
| main.rs:168:9:168:9 | x | Variable is not used. |
5
- | main.rs:196:9:196:9 | x | Variable is not used. |
6
- | main.rs:201:9:201:9 | x | Variable is not used. |
7
5
| main.rs:250:17:250:17 | a | Variable is not used. |
8
6
| main.rs:258:20:258:22 | val | Variable is not used. |
9
7
| main.rs:272:14:272:16 | val | Variable is not used. |
Original file line number Diff line number Diff line change @@ -193,12 +193,12 @@ fn loops() {
193
193
}
194
194
}
195
195
196
- for x // SPURIOUS: unused variable
196
+ for x
197
197
in 1 ..10 {
198
198
println ! ( "x is {x}" ) ;
199
199
}
200
200
201
- for x // SPURIOUS: unused variable
201
+ for x
202
202
in 1 ..10 {
203
203
_ = format ! ( "x is {x}" ) ; // SPURIOUS: unused value `res`
204
204
}
You can’t perform that action at this time.
0 commit comments