blob: a3ae7bc34687a98c2d8e9339db8a55b17c0a4f98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
pub fn main() void {
var i = 0;
while ("n") |bruh| {
_ = bruh;
} else |i| {}
}
// error
//
// :5:13: error: capture 'i' shadows local variable from outer scope
// :2:9: note: previous declaration here
|