diff options
| author | y21 <30553356+y21@users.noreply.github.com> | 2023-05-11 21:55:50 +0200 |
|---|---|---|
| committer | y21 <30553356+y21@users.noreply.github.com> | 2023-05-13 10:51:21 +0200 |
| commit | 7fe83345ef0204eedd8ac3847a527466f6853c0b (patch) | |
| tree | 4eebd7ea8dbf0aa0663e32a0b28f65638dee6a1b /compiler/rustc_parse/messages.ftl | |
| parent | 69fef92ab2f287f072b66fb7b4f62c8bb4acba43 (diff) | |
| download | rust-7fe83345ef0204eedd8ac3847a527466f6853c0b.tar.gz rust-7fe83345ef0204eedd8ac3847a527466f6853c0b.zip | |
improve error for `impl<..> impl Trait for Type`
Diffstat (limited to 'compiler/rustc_parse/messages.ftl')
| -rw-r--r-- | compiler/rustc_parse/messages.ftl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_parse/messages.ftl b/compiler/rustc_parse/messages.ftl index 1bbf833e3cd..2d0f466e236 100644 --- a/compiler/rustc_parse/messages.ftl +++ b/compiler/rustc_parse/messages.ftl @@ -478,6 +478,11 @@ parse_missing_for_in_trait_impl = missing `for` in a trait impl parse_expected_trait_in_trait_impl_found_type = expected a trait, found type +parse_extra_impl_keyword_in_trait_impl = unexpected `impl` keyword + .suggestion = remove the extra `impl` + .note = this is parsed as an `impl Trait` type, but a trait is expected at this position + + parse_non_item_in_item_list = non-item in item list .suggestion_use_const_not_let = consider using `const` instead of `let` for associated const .label_list_start = item list starts here |
