diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-04-08 16:33:24 +0200 |
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-04-08 16:33:24 +0200 |
| commit | cebc520034d1225c30b92e91834ac15b91cf779c (patch) | |
| tree | 81814d4fd1b9abe9fa9c26387d53c811ce90cb4c /compiler/rustc_error_codes/src | |
| parent | d7b226398ecbba34b5dbc67dc9570ebee203741e (diff) | |
Fix error code tests
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 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0782.md b/compiler/rustc_error_codes/src/error_codes/E0782.md index b19d5209e4f..5eddd7ae8d5 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0782.md +++ b/compiler/rustc_error_codes/src/error_codes/E0782.md @@ -2,7 +2,7 @@ Trait objects must include the `dyn` keyword. Erroneous code example: -```edition2021,compile_fail,E782 +```edition2021,compile_fail,E0782 trait Foo {} fn test(arg: Box<Foo>) {} // error! ``` diff --git a/compiler/rustc_error_codes/src/error_codes/E0783.md b/compiler/rustc_error_codes/src/error_codes/E0783.md index afc82546dac..ee784be35ef 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0783.md +++ b/compiler/rustc_error_codes/src/error_codes/E0783.md @@ -2,7 +2,7 @@ The range pattern `...` is no longer allowed. Erroneous code example: -```edition2021,compile_fail,E783 +```edition2021,compile_fail,E0783 match 2u8 { 0...9 => println!("Got a number less than 10"), // error! _ => println!("Got a number 10 or more"), |
