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 1818| main.rs:348:5:348:39 | kind | Variable is assigned a value that is never used. |
1919| main.rs:370:9:370:9 | x | Variable is assigned a value that is never used. |
2020| 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. |
2221| more.rs:24:9:24:11 | val | Variable is assigned a value that is never used. |
2322| more.rs:46:9:46:14 | a_ptr4 | Variable is assigned a value that is never used. |
2423| 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() {
429429 let a5 = 1 ..10 ;
430430 _ = a5. fold ( 0 , | acc, val | val) ; // BAD: unused variable
431431
432- let i6 = 1 ; // SPURIOUS: unused value
432+ let i6 = 1 ;
433433 let a6 = 1 ..10 ;
434434 _ = a6. fold ( 0 , | acc, val | acc + val + i6) ;
435435}
You can’t perform that action at this time.
0 commit comments