]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-while-break.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / 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 }