]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-while-break.rs
Auto merge of #101768 - sunfishcode:sunfishcode/wasi-stdio-lock-asfd, r=joshtriplett
[rust.git] / src / test / ui / borrowck / borrowck-while-break.rs
1 fn test(cond: bool) {
2     let v;
3     while cond {
4         v = 3;
5         break;
6     }
7     println!("{}", v); //~ ERROR E0381
8 }
9
10 fn main() {
11     test(true);
12 }