]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-break-uninit.rs
Auto merge of #101768 - sunfishcode:sunfishcode/wasi-stdio-lock-asfd, r=joshtriplett
[rust.git] / src / test / ui / borrowck / borrowck-break-uninit.rs
1 fn foo() -> isize {
2     let x: isize;
3
4     loop {
5         break;
6         x = 0;
7     }
8
9     println!("{}", x); //~ ERROR E0381
10
11     return 17;
12 }
13
14 fn main() { println!("{}", foo()); }