@@ -4,6 +4,18 @@ error: type parameters must be declared prior to const parameters
4
4
LL | struct Bad<const N: usize, T> {
5
5
| -----------------^- help: reorder the parameters: lifetimes, then types, then consts: `<T, const N: usize>`
6
6
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
+
7
19
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
8
20
--> $DIR/argument_order.rs:1:12
9
21
|
@@ -13,5 +25,5 @@ LL | #![feature(const_generics)]
13
25
= note: `#[warn(incomplete_features)]` on by default
14
26
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
15
27
16
- error: aborting due to previous error ; 1 warning emitted
28
+ error: aborting due to 3 previous errors ; 1 warning emitted
17
29
0 commit comments