]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/let-binop.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / parser / let-binop.rs
1 // run-rustfix
2
3 fn main() {
4     let a: i8 *= 1; //~ ERROR can't reassign to an uninitialized variable
5     let _ = a;
6     let b += 1; //~ ERROR can't reassign to an uninitialized variable
7     let _ = b;
8     let c *= 1; //~ ERROR can't reassign to an uninitialized variable
9     let _ = c;
10 }