| 1 | pub fn f() void { |
| 2 | var bar: bool = true; |
| 3 | _ = &bar; |
| 4 | const S = struct { |
| 5 | fn baz() bool { |
| 6 | return bar; |
| 7 | } |
| 8 | }; |
| 9 | _ = S; |
| 10 | } |
| 11 | |
| 12 | // error |
| 13 | // |
| 14 | // :6:20: error: mutable 'bar' not accessible from here |
| 15 | // :2:9: note: declared mutable here |
| 16 | // :4:15: note: crosses namespace boundary here |