Skip to content

Commit 7235ba8

Browse files
committed
Rust: Fix test compilation errors.
1 parent 3b1d917 commit 7235ba8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/ql/test/query-tests/unusedentities/unreachable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn unreachable_if() {
4141
do_something();
4242

4343
if cond() {
44-
bool x = cond();
44+
let x = cond();
4545

4646
if (x) { // SPURIOUS: unreachable
4747
do_something();
@@ -143,7 +143,7 @@ fn unreachable_loop() {
143143

144144
if cond() {
145145
while cond() {
146-
do_something();{
146+
do_something();
147147
}
148148

149149
while false {

0 commit comments

Comments
 (0)