tweak wording

Co-authored-by: varkor <github@varkor.com>
This commit is contained in:
Bastian Kauschke 2020-07-23 08:06:42 +02:00
parent a95e6bb916
commit 2f565967b0
2 changed files with 2 additions and 2 deletions

View file

@ -1132,7 +1132,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
if matches!(param.kind, GenericParamKind::Const { .. }) {
err.note(
"using type defaults and const parameters \
in the same parameter listing is currently not possible",
in the same parameter list is currently not permitted",
);
}
err.emit();

View file

@ -4,7 +4,7 @@ error: type parameters with a default must be trailing
LL | struct A<T = u32, const N: usize> {
| ^
|
= note: using type defaults and const parameters in the same parameter listing is currently not possible
= note: using type defaults and const parameters in the same parameter list is currently not permitted
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/wrong-order.rs:1:12