Skip to content

Commit 2f56596

Browse files
lcnrvarkor
andcommittedJul 23, 2020
tweak wording
Co-authored-by: varkor <github@varkor.com>
1 parent a95e6bb commit 2f56596

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/librustc_ast_passes/ast_validation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
11321132
if matches!(param.kind, GenericParamKind::Const { .. }) {
11331133
err.note(
11341134
"using type defaults and const parameters \
1135-
in the same parameter listing is currently not possible",
1135+
in the same parameter list is currently not permitted",
11361136
);
11371137
}
11381138
err.emit();

‎src/test/ui/const-generics/defaults/wrong-order.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: type parameters with a default must be trailing
44
LL | struct A<T = u32, const N: usize> {
55
| ^
66
|
7-
= note: using type defaults and const parameters in the same parameter listing is currently not possible
7+
= note: using type defaults and const parameters in the same parameter list is currently not permitted
88

99
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
1010
--> $DIR/wrong-order.rs:1:12

0 commit comments

Comments
 (0)
Please sign in to comment.