We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5115216 + c4256f2 commit 25b592fCopy full SHA for 25b592f
rust/ql/test/query-tests/unusedentities/main.rs
@@ -111,7 +111,7 @@ fn arrays() {
111
112
println!("lets use {:?}", js);
113
114
- for k // SPURIOUS: unused variable [macros not yet supported]
+ for k
115
in ks
116
{
117
println!("lets use {}", k); // [unreachable FALSE POSITIVE]
@@ -166,12 +166,12 @@ fn loops() {
166
167
for _ in 1..10 {}
168
169
- for x // SPURIOUS: unused variable [macros not yet supported]
+ for x
170
in 1..10 {
171
println!("x is {}", x);
172
}
173
174
175
176
assert!(x != 11);
177
0 commit comments