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.
- Loading branch information
1 parent
682782e
commit 2209a09
Showing
3 changed files
with
29 additions
and
8 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 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,8 +1,8 @@ | ||
fn main() { | ||
let a: i8 *= 1; //~ ERROR expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `=`, found `*=` | ||
let a: i8 *= 1; //~ ERROR blah | ||
let _ = a; | ||
let b += 1; | ||
let b += 1; //~ ERROR blah | ||
let _ = b; | ||
let c *= 1; | ||
let c *= 1; //~ ERROR blah | ||
let _ = c; | ||
} |
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,8 +1,20 @@ | ||
error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `=`, found `*=` | ||
error: blah | ||
--> $DIR/let-binop.rs:2:15 | ||
| | ||
LL | let a: i8 *= 1; | ||
| ^^ expected one of 7 possible tokens | ||
| ^^ | ||
|
||
error: aborting due to previous error | ||
error: blah | ||
--> $DIR/let-binop.rs:4:11 | ||
| | ||
LL | let b += 1; | ||
| ^^ | ||
|
||
error: blah | ||
--> $DIR/let-binop.rs:6:11 | ||
| | ||
LL | let c *= 1; | ||
| ^^ | ||
|
||
error: aborting due to 3 previous errors | ||
|