Fix error code tests for now
This commit is contained in:
parent
c2d0f1457a
commit
1d84947bb5
2 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue