File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
test/ui/const-generics/defaults Expand file tree Collapse file tree 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> {
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 ( ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ error: type parameters with a default must be trailing
44LL | 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
99warning: 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
You can’t perform that action at this time.
0 commit comments