Use span_suggestion instead of span_err_help
This commit is contained in:
parent
8260209bb2
commit
a9b746bb23
2 changed files with 4 additions and 6 deletions
|
|
@ -2,9 +2,7 @@ error: unexpected token `||` after pattern
|
|||
--> $DIR/multiple-pattern-typo.rs:14:15
|
||||
|
|
||||
14 | 1 | 2 || 3 => (), //~ ERROR unexpected token `||` after pattern
|
||||
| ^^
|
||||
|
|
||||
= help: did you mean to use `|` to specify multiple patterns?
|
||||
| ^^ help: use a single `|` to specify multiple patterns: `|`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue