forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust according to petrochenkov's review comments
- Loading branch information
Showing
4 changed files
with
27 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,20 @@ | ||
error[E0067]: can't reassign to an uninitialized variable | ||
error: can't reassign to an uninitialized variable | ||
--> $DIR/let-binop.rs:2:15 | ||
| | ||
LL | let a: i8 *= 1; | ||
| ^^ help: initialize the variable | ||
|
||
error[E0067]: can't reassign to an uninitialized variable | ||
error: can't reassign to an uninitialized variable | ||
--> $DIR/let-binop.rs:4:11 | ||
| | ||
LL | let b += 1; | ||
| ^^ | ||
| | ||
help: initialize the variable | ||
| | ||
LL | let b = 1; | ||
| ^ | ||
help: otherwise, reassign to a previously initialized variable | ||
| | ||
LL | b += 1; | ||
| -- | ||
| ^^ help: initialize the variable | ||
|
||
error[E0067]: can't reassign to an uninitialized variable | ||
error: can't reassign to an uninitialized variable | ||
--> $DIR/let-binop.rs:6:11 | ||
| | ||
LL | let c *= 1; | ||
| ^^ | ||
| | ||
help: initialize the variable | ||
| | ||
LL | let c = 1; | ||
| ^ | ||
help: otherwise, reassign to a previously initialized variable | ||
| | ||
LL | c *= 1; | ||
| -- | ||
| ^^ help: initialize the variable | ||
|
||
error: aborting due to 3 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0067`. |