From 32069d23301f624a7cdd4f1763c2de24f7a234ab Mon Sep 17 00:00:00 2001 From: Meghan Date: Sun, 1 Aug 2021 02:42:05 -0700 Subject: [PATCH] langref- fix use after block error code --- doc/langref.html.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 4efa7d0e3c30e188d10998c2b4925ba9ad1f3007..ce07d6494a01cc5dce03c7b5e854a6411a566b26 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -3422,10 +3422,11 @@ test "call foo" {

Blocks are used to limit the scope of variable declarations:

- {#code_begin|test_err|unused local variable#} + {#code_begin|test_err|use of undeclared identifier 'x'#} test "access variable after block scope" { { var x: i32 = 1; + _ = x; } x += 1; } -- 2.54.0