1
Fork 0

Improve error

This commit is contained in:
Ryan Levick 2021-03-19 10:18:22 +01:00
parent 2c1429ca5e
commit a2b1347bbb
3 changed files with 27 additions and 7 deletions

View file

@ -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"),