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 22| main.rs:90:13:90:13 | d | Variable is not used. |
33| main.rs:141:5:141:5 | y | Variable is not used. |
44| 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. |
75| main.rs:250:17:250:17 | a | Variable is not used. |
86| main.rs:258:20:258:22 | val | Variable is not used. |
97| 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() {
193193 }
194194 }
195195
196- for x // SPURIOUS: unused variable
196+ for x
197197 in 1 ..10 {
198198 println ! ( "x is {x}" ) ;
199199 }
200200
201- for x // SPURIOUS: unused variable
201+ for x
202202 in 1 ..10 {
203203 _ = format ! ( "x is {x}" ) ; // SPURIOUS: unused value `res`
204204 }
You can’t perform that action at this time.
0 commit comments