]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-break-uninit-2.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / borrowck-break-uninit-2.rs
1 fn foo() -> isize {
2     let x: isize;
3
4     while 1 != 2  {
5         break;
6         x = 0;
7     }
8
9     println!("{}", x); //~ ERROR E0381
10
11     return 17;
12 }
13
14 fn main() { println!("{}", foo()); }