File tree 1 file changed +9
-7
lines changed
rust/ql/test/library-tests/controlflow
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -62,15 +62,15 @@ mod loop_expression {
62
62
}
63
63
64
64
fn test_loop_label_shadowing ( b : bool ) -> ! {
65
- ' loop : loop {
65
+ ' label : loop {
66
66
1 ;
67
- ' loop : loop {
67
+ ' label : loop {
68
68
if b {
69
69
continue ;
70
70
} else if b {
71
- continue ' loop ;
71
+ continue ' label ;
72
72
}
73
- continue ' loop ;
73
+ continue ' label ;
74
74
}
75
75
}
76
76
}
@@ -150,7 +150,9 @@ mod if_expression {
150
150
}
151
151
152
152
fn test_and_if_let2 ( a : bool , b : i64 , c : bool ) -> bool {
153
- if a && let d = b && c{
153
+ if a && let d = b
154
+ && c
155
+ {
154
156
d > 0
155
157
} else {
156
158
false
@@ -279,7 +281,7 @@ mod logical_operators {
279
281
}
280
282
}
281
283
282
- fn test_and_return ( a : bool ) {
284
+ fn test_and_return ( a : bool ) {
283
285
a && return ;
284
286
}
285
287
}
@@ -477,4 +479,4 @@ fn test_nested_function() {
477
479
478
480
trait MyFrom < T > {
479
481
fn my_from ( x : T ) -> Self ;
480
- }
482
+ }
You can’t perform that action at this time.
0 commit comments