2020-07-02 00:32:12 -05:00
|
|
|
//@ run-rustfix
|
|
|
|
|
2020-05-06 20:57:31 -05:00
|
|
|
fn main() {
|
2020-05-07 16:45:51 -05:00
|
|
|
let a: i8 *= 1; //~ ERROR can't reassign to an uninitialized variable
|
2020-05-06 20:57:31 -05:00
|
|
|
let _ = a;
|
2020-05-07 16:45:51 -05:00
|
|
|
let b += 1; //~ ERROR can't reassign to an uninitialized variable
|
2020-05-06 20:57:31 -05:00
|
|
|
let _ = b;
|
2020-05-07 16:45:51 -05:00
|
|
|
let c *= 1; //~ ERROR can't reassign to an uninitialized variable
|
2020-05-06 20:57:31 -05:00
|
|
|
let _ = c;
|
|
|
|
}
|