Improve error
This commit is contained in:
parent
2c1429ca5e
commit
a2b1347bbb
3 changed files with 27 additions and 7 deletions
|
@ -2,7 +2,7 @@ The range pattern `...` is no longer allowed.
|
|||
|
||||
Erroneous code example:
|
||||
|
||||
```edition2021,compile_fail,E782
|
||||
```edition2021,compile_fail,E783
|
||||
match 2u8 {
|
||||
0...9 => println!("Got a number less than 10"), // error!
|
||||
_ => println!("Got a number 10 or more"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue