]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-while.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[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 use of possibly-uninitialized variable: `x`
5 }
6
7 fn main() { f(); }