From dab89b51ace2adff9d8e006d8b76516a48c47a2e Mon Sep 17 00:00:00 2001 From: Shadlock0133 Date: Sun, 13 Jun 2021 21:21:45 +0200 Subject: [PATCH] Fix typo `with custom a custom` -> `with a custom` --- compiler/rustc_error_codes/src/error_codes/E0493.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_error_codes/src/error_codes/E0493.md b/compiler/rustc_error_codes/src/error_codes/E0493.md index 0dcc3b62b4b..e891129efa0 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0493.md +++ b/compiler/rustc_error_codes/src/error_codes/E0493.md @@ -21,7 +21,7 @@ static FOO: Foo = Foo { field1: (DropType::A, DropType::A).1 }; // error! The problem here is that if the given type or one of its fields implements the `Drop` trait, this `Drop` implementation cannot be called within a const context since it may run arbitrary, non-const-checked code. To prevent this -issue, ensure all values with custom a custom `Drop` implementation escape the +issue, ensure all values with a custom `Drop` implementation escape the initializer. ```