2022-04-27 21:37:54 +08:00
|
|
|
pub fn main() void {
|
|
|
|
var i = 0;
|
|
|
|
while ("n") |bruh| {
|
|
|
|
_ = bruh;
|
2023-06-15 15:14:16 +08:00
|
|
|
} else |i| {}
|
2022-04-27 21:37:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// error
|
|
|
|
//
|
2022-10-06 22:05:34 +08:00
|
|
|
// :5:13: error: capture 'i' shadows local variable from outer scope
|
2022-04-27 21:37:54 +08:00
|
|
|
// :2:9: note: previous declaration here
|