| ... | @@ -3422,10 +3422,11 @@ test "call foo" { | ... | @@ -3422,10 +3422,11 @@ test "call foo" { |
| 3422 | <p> | 3422 | <p> |
| 3423 | Blocks are used to limit the scope of variable declarations: | 3423 | Blocks are used to limit the scope of variable declarations: |
| 3424 | </p> | 3424 | </p> |
| 3425 | {#code_begin|test_err|unused local variable#} | 3425 | {#code_begin|test_err|use of undeclared identifier 'x'#} |
| 3426 | test "access variable after block scope" { | 3426 | test "access variable after block scope" { |
| 3427 | { | 3427 | { |
| 3428 | var x: i32 = 1; | 3428 | var x: i32 = 1; |
| | 3429 | _ = x; |
| 3429 | } | 3430 | } |
| 3430 | x += 1; | 3431 | x += 1; |
| 3431 | } | 3432 | } |