Skip to content

Commit 1d84947

Browse files
committed
Fix error code tests for now
1 parent c2d0f14 commit 1d84947

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_error_codes/src/error_codes/E0782.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ runtime but conform to some trait.
66
In the following code the trait object should be formed with
77
`Box<dyn Foo>`, but `dyn` is left off.
88

9-
```compile_fail,E0782
9+
```no_run
1010
trait Foo {}
1111
fn test(arg: Box<Foo>) {}
1212
```

compiler/rustc_error_codes/src/error_codes/E0783.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ ranges which are now signified using `..=`.
55

66
The following code use to compile, but now it now longer does.
77

8-
```compile_fail,E0783
8+
```no_run
99
fn main() {
1010
let n = 2u8;
1111
match n {
12-
...9 => println!("Got a number less than 10),
12+
...9 => println!("Got a number less than 10"),
1313
_ => println!("Got a number 10 or more")
1414
}
1515
}

0 commit comments

Comments
 (0)