diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2023-08-06 14:00:12 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2023-08-07 05:26:38 +0000 |
| commit | 1ca4bc966ec5215a8daacf584d337f75322c0e9a (patch) | |
| tree | f9122adacc64ab956d816eecf8d6399dc2f420a4 /compiler/rustc_trait_selection/messages.ftl | |
| parent | bc720ad36b74c428b210c71c66e4490cec12b023 (diff) | |
| download | rust-1ca4bc966ec5215a8daacf584d337f75322c0e9a.tar.gz rust-1ca4bc966ec5215a8daacf584d337f75322c0e9a.zip | |
Migrate a trait selection error to use diagnostic translation
Diffstat (limited to 'compiler/rustc_trait_selection/messages.ftl')
| -rw-r--r-- | compiler/rustc_trait_selection/messages.ftl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_trait_selection/messages.ftl b/compiler/rustc_trait_selection/messages.ftl index f57f1bad15d..f4c9dfa3488 100644 --- a/compiler/rustc_trait_selection/messages.ftl +++ b/compiler/rustc_trait_selection/messages.ftl @@ -8,6 +8,15 @@ trait_selection_adjust_signature_remove_borrow = consider adjusting the signatur *[other] arguments } +trait_selection_closure_fn_mut_label = closure is `FnMut` because it mutates the variable `{$place}` here + +trait_selection_closure_fn_once_label = closure is `FnOnce` because it moves the variable `{$place}` out of its environment + +trait_selection_closure_kind_mismatch = expected a closure that implements the `{$expected}` trait, but this closure only implements `{$found}` + .label = this closure implements `{$found}`, not `{$expected}` + +trait_selection_closure_kind_requirement = the requirement to implement `{$expected}` derives from here + trait_selection_dump_vtable_entries = vtable entries for `{$trait_ref}`: {$entries} trait_selection_empty_on_clause_in_rustc_on_unimplemented = empty `on`-clause in `#[rustc_on_unimplemented]` |
