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) {} // 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"),