Rollup merge of #98796 - compiler-errors:no-semi-if-comma, r=estebank
Do not exclusively suggest `;` when `,` is also a choice Fixes #96791
This commit is contained in:
commit
f6ea143f93
5 changed files with 23 additions and 13 deletions
|
|
@ -3,7 +3,7 @@
|
|||
// error-pattern:this file contains an unclosed delimiter
|
||||
// error-pattern:expected one of
|
||||
// error-pattern:missing `in` in `for` loop
|
||||
// error-pattern:expected `;`, found `e`
|
||||
// error-pattern:expected one of `!`, `)`, `,`, `.`, `::`, `;`, `?`, `{`, or an operator, found `e`
|
||||
|
||||
fn m(){print!("",(c for&g
|
||||
u
|
||||
|
|
|
|||
|
|
@ -48,19 +48,13 @@ error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found
|
|||
LL | fn m(){print!("",(c for&g
|
||||
| ^^^ expected one of 8 possible tokens
|
||||
|
||||
error: expected `;`, found `e`
|
||||
--> $DIR/issue-88770.rs:10:2
|
||||
error: expected one of `!`, `)`, `,`, `.`, `::`, `;`, `?`, `{`, or an operator, found `e`
|
||||
--> $DIR/issue-88770.rs:11:1
|
||||
|
|
||||
LL | e
|
||||
| ^ help: add `;` here
|
||||
| - expected one of 9 possible tokens
|
||||
LL | e
|
||||
| - unexpected token
|
||||
| ^ unexpected token
|
||||
|
||||
error: expected one of `!`, `,`, `.`, `::`, `?`, `{`, or an operator, found `)`
|
||||
--> $DIR/issue-88770.rs:11:3
|
||||
|
|
||||
LL | e
|
||||
| ^ expected one of 7 possible tokens
|
||||
|
||||
error: aborting due to 7 previous errors
|
||||
error: aborting due to 6 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue