]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-while.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / borrowck / borrowck-while.rs
1 fn f() -> isize {
2     let mut x: isize;
3     while 1 == 1 { x = 10; }
4     return x; //~ ERROR E0381
5 }
6
7 fn main() { f(); }