1
Fork 0

Fix error code tests for now

This commit is contained in:
Ryan Levick 2021-03-17 11:14:55 +01:00
parent c2d0f1457a
commit 1d84947bb5
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ runtime but conform to some trait.
In the following code the trait object should be formed with
`Box<dyn Foo>`, but `dyn` is left off.
```compile_fail,E0782
```no_run
trait Foo {}
fn test(arg: Box<Foo>) {}
```

View file

@ -5,11 +5,11 @@ ranges which are now signified using `..=`.
The following code use to compile, but now it now longer does.
```compile_fail,E0783
```no_run
fn main() {
let n = 2u8;
match n {
...9 => println!("Got a number less than 10),
...9 => println!("Got a number less than 10"),
_ => println!("Got a number 10 or more")
}
}