Fix error code tests for now
This commit is contained in:
@@ -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>) {}
|
||||
```
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user