Fix error code tests

This commit is contained in:
Ryan Levick 2021-04-08 16:33:24 +02:00
parent d7b226398e
commit cebc520034
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ Trait objects must include the `dyn` keyword.
Erroneous code example: Erroneous code example:
```edition2021,compile_fail,E782 ```edition2021,compile_fail,E0782
trait Foo {} trait Foo {}
fn test(arg: Box<Foo>) {} // error! fn test(arg: Box<Foo>) {} // error!
``` ```

View file

@ -2,7 +2,7 @@ The range pattern `...` is no longer allowed.
Erroneous code example: Erroneous code example:
```edition2021,compile_fail,E783 ```edition2021,compile_fail,E0783
match 2u8 { match 2u8 {
0...9 => println!("Got a number less than 10"), // error! 0...9 => println!("Got a number less than 10"), // error!
_ => println!("Got a number 10 or more"), _ => println!("Got a number 10 or more"),