]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-for-loop-uninitialized-binding.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[rust.git] / src / test / ui / borrowck / borrowck-for-loop-uninitialized-binding.rs
1 fn f() -> isize {
2     let mut x: isize;
3     for _ in 0..0 { x = 10; }
4     return x; //~ ERROR E0381
5 }
6
7 fn main() { f(); }