master
 1fn foo(a: usize) void {
 2    struct {
 3        const a = 1;
 4    };
 5    _ = a;
 6}
 7fn bar(a: usize) void {
 8    struct {
 9        const b = struct {
10            const a = 1;
11        };
12    };
13    _ = a;
14}
15
16// error
17//
18// :3:15: error: declaration 'a' shadows function parameter from outer scope
19// :1:8: note: previous declaration here
20// :10:19: error: declaration 'a' shadows function parameter from outer scope
21// :7:8: note: previous declaration here