2020-05-07 23:45:51 +02:00
|
|
|
error[E0067]: can't reassign to an uninitialized variable
|
2020-05-07 03:57:31 +02:00
|
|
|
--> $DIR/let-binop.rs:2:15
|
|
|
|
|
|
|
|
|
LL | let a: i8 *= 1;
|
2020-05-07 23:45:51 +02:00
|
|
|
| ^^ help: initialize the variable
|
2020-05-07 03:57:31 +02:00
|
|
|
|
2020-05-07 23:45:51 +02:00
|
|
|
error[E0067]: can't reassign to an uninitialized variable
|
2020-05-07 03:57:31 +02:00
|
|
|
--> $DIR/let-binop.rs:4:11
|
|
|
|
|
|
|
|
|
LL | let b += 1;
|
2020-05-07 04:09:57 +02:00
|
|
|
| ^^
|
|
|
|
|
|
2020-05-07 23:45:51 +02:00
|
|
|
help: initialize the variable
|
2020-05-07 04:09:57 +02:00
|
|
|
|
|
|
|
|
LL | let b = 1;
|
|
|
|
| ^
|
2020-05-07 23:45:51 +02:00
|
|
|
help: otherwise, reassign to a previously initialized variable
|
2020-05-07 04:09:57 +02:00
|
|
|
|
|
2020-05-07 23:45:51 +02:00
|
|
|
LL | b += 1;
|
2020-05-07 04:09:57 +02:00
|
|
|
| --
|
2020-05-07 03:57:31 +02:00
|
|
|
|
2020-05-07 23:45:51 +02:00
|
|
|
error[E0067]: can't reassign to an uninitialized variable
|
2020-05-07 03:57:31 +02:00
|
|
|
--> $DIR/let-binop.rs:6:11
|
|
|
|
|
|
|
|
|
LL | let c *= 1;
|
2020-05-07 04:09:57 +02:00
|
|
|
| ^^
|
|
|
|
|
|
2020-05-07 23:45:51 +02:00
|
|
|
help: initialize the variable
|
2020-05-07 04:09:57 +02:00
|
|
|
|
|
|
|
|
LL | let c = 1;
|
|
|
|
| ^
|
2020-05-07 23:45:51 +02:00
|
|
|
help: otherwise, reassign to a previously initialized variable
|
2020-05-07 04:09:57 +02:00
|
|
|
|
|
2020-05-07 23:45:51 +02:00
|
|
|
LL | c *= 1;
|
2020-05-07 04:09:57 +02:00
|
|
|
| --
|
2020-05-07 03:57:31 +02:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0067`.
|