File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
rust/ql/test/query-tests/unusedentities Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 16
16
| main.rs:268:9:268:11 | Yes | Variable is not used. |
17
17
| main.rs:269:9:269:10 | No | Variable is not used. |
18
18
| main.rs:272:12:272:12 | j | Variable is not used. |
19
- | main.rs:290:25:290:25 | y | Variable is not used. |
20
- | main.rs:294:28:294:28 | a | Variable is not used. |
21
- | main.rs:298:9:298:9 | p | Variable is not used. |
22
- | main.rs:305:13:305:13 | y | Variable is not used. |
23
- | main.rs:313:21:313:21 | y | Variable is not used. |
19
+ | main.rs:282:12:282:14 | Yes | Variable is not used. |
20
+ | main.rs:294:25:294:25 | y | Variable is not used. |
21
+ | main.rs:298:28:298:28 | a | Variable is not used. |
22
+ | main.rs:302:9:302:9 | p | Variable is not used. |
23
+ | main.rs:309:13:309:13 | y | Variable is not used. |
24
+ | main.rs:317:21:317:21 | y | Variable is not used. |
Original file line number Diff line number Diff line change @@ -278,6 +278,10 @@ fn if_lets_matches() {
278
278
}
279
279
}
280
280
281
+ let l = Yes ;
282
+ if let Yes = l { // SPURIOUS: unused variable 'Yes'
283
+ }
284
+
281
285
match 1 {
282
286
1 => { }
283
287
_ => { }
You can’t perform that action at this time.
0 commit comments