File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
rust/ql/test/library-tests/controlflow Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -62,15 +62,15 @@ mod loop_expression {
6262 }
6363
6464 fn test_loop_label_shadowing ( b : bool ) -> ! {
65- ' loop : loop {
65+ ' label : loop {
6666 1 ;
67- ' loop : loop {
67+ ' label : loop {
6868 if b {
6969 continue ;
7070 } else if b {
71- continue ' loop ;
71+ continue ' label ;
7272 }
73- continue ' loop ;
73+ continue ' label ;
7474 }
7575 }
7676 }
@@ -150,7 +150,9 @@ mod if_expression {
150150 }
151151
152152 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+ {
154156 d > 0
155157 } else {
156158 false
@@ -279,7 +281,7 @@ mod logical_operators {
279281 }
280282 }
281283
282- fn test_and_return ( a : bool ) {
284+ fn test_and_return ( a : bool ) {
283285 a && return ;
284286 }
285287}
@@ -477,4 +479,4 @@ fn test_nested_function() {
477479
478480trait MyFrom < T > {
479481 fn my_from ( x : T ) -> Self ;
480- }
482+ }
You can’t perform that action at this time.
0 commit comments