1
Fork 0

migrate check_const.rs to translateable diagnostics

This commit is contained in:
Nathan Stocks 2022-09-24 12:49:29 -06:00
parent c457abee2e
commit 572f3414b7
3 changed files with 54 additions and 4 deletions

View file

@ -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]`