diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-03-17 11:14:55 +0100 |
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-04-08 15:36:27 +0200 |
| commit | 1d84947bb568ab7652fb0e04d6f0f1bdaaaf489a (patch) | |
| tree | d89ef1692e830936356f5bd0d1cf187de1ebacad /compiler/rustc_error_codes/src | |
| parent | c2d0f1457ac71342fb6411ecf6d8253a04686dc1 (diff) | |
| download | rust-1d84947bb568ab7652fb0e04d6f0f1bdaaaf489a.tar.gz rust-1d84947bb568ab7652fb0e04d6f0f1bdaaaf489a.zip | |
Fix error code tests for now
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") } } |
