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