File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
rust/ql/test/query-tests/unusedentities Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 18
18
| main.rs:348:5:348:39 | kind | Variable is assigned a value that is never used. |
19
19
| main.rs:370:9:370:9 | x | Variable is assigned a value that is never used. |
20
20
| main.rs:378:17:378:17 | x | Variable is assigned a value that is never used. |
21
- | main.rs:432:9:432:10 | i6 | Variable is assigned a value that is never used. |
22
21
| more.rs:24:9:24:11 | val | Variable is assigned a value that is never used. |
23
22
| more.rs:46:9:46:14 | a_ptr4 | Variable is assigned a value that is never used. |
24
23
| more.rs:61:9:61:13 | d_ptr | Variable is assigned a value that is never used. |
Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ fn folds_and_closures() {
429
429
let a5 = 1 ..10 ;
430
430
_ = a5. fold ( 0 , | acc, val | val) ; // BAD: unused variable
431
431
432
- let i6 = 1 ; // SPURIOUS: unused value
432
+ let i6 = 1 ;
433
433
let a6 = 1 ..10 ;
434
434
_ = a6. fold ( 0 , | acc, val | acc + val + i6) ;
435
435
}
You can’t perform that action at this time.
0 commit comments