diff options
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0782.md | 2 | ||||
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0783.md | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0782.md b/compiler/rustc_error_codes/src/error_codes/E0782.md index e001aa8bc9b..933e37763f6 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0782.md +++ b/compiler/rustc_error_codes/src/error_codes/E0782.md @@ -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>) {} ``` diff --git a/compiler/rustc_error_codes/src/error_codes/E0783.md b/compiler/rustc_error_codes/src/error_codes/E0783.md index cc904543b0d..73c19cd7f02 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0783.md +++ b/compiler/rustc_error_codes/src/error_codes/E0783.md @@ -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") } } |
