File tree 2 files changed +2
-2
lines changed
test/ui/const-generics/defaults
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1132,7 +1132,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
1132
1132
if matches ! ( param. kind, GenericParamKind :: Const { .. } ) {
1133
1133
err. note (
1134
1134
"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 ",
1136
1136
) ;
1137
1137
}
1138
1138
err. emit ( ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: type parameters with a default must be trailing
4
4
LL | struct A<T = u32, const N: usize> {
5
5
| ^
6
6
|
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
8
8
9
9
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
10
10
--> $DIR/wrong-order.rs:1:12
You can’t perform that action at this time.
0 commit comments