@@ -4,6 +4,18 @@ error: type parameters must be declared prior to const parameters
44LL | struct Bad<const N: usize, T> {
55 | -----------------^- help: reorder the parameters: lifetimes, then types, then consts: `<T, const N: usize>`
66
7+ error: lifetime parameters must be declared prior to const parameters
8+ --> $DIR/argument_order.rs:9:32
9+ |
10+ LL | struct AlsoBad<const N: usize, 'a, T, 'b, const M: usize, U> {
11+ | -----------------^^-----^^-------------------- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b, T, U, const N: usize, const M: usize>`
12+
13+ error: type parameters must be declared prior to const parameters
14+ --> $DIR/argument_order.rs:9:36
15+ |
16+ LL | struct AlsoBad<const N: usize, 'a, T, 'b, const M: usize, U> {
17+ | ---------------------^----------------------^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, 'b, T, U, const N: usize, const M: usize>`
18+
719warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
820 --> $DIR/argument_order.rs:1:12
921 |
@@ -13,5 +25,5 @@ LL | #![feature(const_generics)]
1325 = note: `#[warn(incomplete_features)]` on by default
1426 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
1527
16- error: aborting due to previous error ; 1 warning emitted
28+ error: aborting due to 3 previous errors ; 1 warning emitted
1729
0 commit comments