]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-if-no-else.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / borrowck / borrowck-if-no-else.rs
1 fn foo(x: isize) { println!("{}", x); }
2
3 fn main() {
4     let x: isize; if 1 > 2 { x = 10; }
5     foo(x); //~ ERROR E0381
6 }