tweak wording
Co-authored-by: varkor <github@varkor.com>
This commit is contained in:
parent
a95e6bb916
commit
2f565967b0
2 changed files with 2 additions and 2 deletions
|
@ -1132,7 +1132,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
|
||||||
if matches!(param.kind, GenericParamKind::Const { .. }) {
|
if matches!(param.kind, GenericParamKind::Const { .. }) {
|
||||||
err.note(
|
err.note(
|
||||||
"using type defaults and const parameters \
|
"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();
|
err.emit();
|
||||||
|
|
|
@ -4,7 +4,7 @@ error: type parameters with a default must be trailing
|
||||||
LL | struct A<T = u32, const N: usize> {
|
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
|
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
|
--> $DIR/wrong-order.rs:1:12
|
||||||
|
|
Loading…
Add table
Reference in a new issue