mirror of
https://github.com/github/codeql.git
synced 2026-04-18 05:24:01 +02:00
Rust: update expected output
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
| main.rs:90:13:90:13 | d | Variable is not used. |
|
||||
| main.rs:141:5:141:5 | y | Variable is not used. |
|
||||
| main.rs:168:9:168:9 | x | Variable is not used. |
|
||||
| main.rs:196:9:196:9 | x | Variable is not used. |
|
||||
| main.rs:201:9:201:9 | x | Variable is not used. |
|
||||
| main.rs:250:17:250:17 | a | Variable is not used. |
|
||||
| main.rs:258:20:258:22 | val | Variable is not used. |
|
||||
| main.rs:272:14:272:16 | val | Variable is not used. |
|
||||
|
||||
@@ -193,12 +193,12 @@ fn loops() {
|
||||
}
|
||||
}
|
||||
|
||||
for x // SPURIOUS: unused variable
|
||||
for x
|
||||
in 1..10 {
|
||||
println!("x is {x}");
|
||||
}
|
||||
|
||||
for x // SPURIOUS: unused variable
|
||||
for x
|
||||
in 1..10 {
|
||||
_ = format!("x is {x}"); // SPURIOUS: unused value `res`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user