migrate check_const.rs to translateable diagnostics
This commit is contained in:
parent
c457abee2e
commit
572f3414b7
3 changed files with 54 additions and 4 deletions
|
@ -426,3 +426,10 @@ passes_feature_stable_twice =
|
|||
|
||||
passes_feature_previously_declared =
|
||||
feature `{$feature}` is declared {$declared}, but was previously declared {$prev_declared}
|
||||
|
||||
passes_expr_not_allowed_in_context =
|
||||
{$expr} is not allowed in a `{$context}`
|
||||
|
||||
passes_const_impl_const_trait =
|
||||
const `impl`s must be for traits marked with `#[const_trait]`
|
||||
.note = this trait must be annotated with `#[const_trait]`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue