Rust: update expected output

This commit is contained in:
Arthur Baars
2024-10-17 21:06:39 +02:00
parent 11396ef7cb
commit be41ca5d4e
2 changed files with 2 additions and 4 deletions

View File

@@ -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. |

View File

@@ -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`
}