|  | 
| 1 | 1 | error: lifetime parameters must be declared prior to type and const parameters | 
| 2 |  | - --> $DIR/argument_order.rs:6:32 | 
|  | 2 | + --> $DIR/argument_order.rs:8:28 | 
| 3 | 3 |  | | 
| 4 |  | -LL | struct AlsoBad<const N: usize, 'a, T, 'b, const M: usize, U> { | 
| 5 |  | - |  -----------------^^-----^^-------------------- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, const N: usize, T, const M: usize, U>` | 
|  | 4 | +LL | struct Bad<const N: usize, 'a, T, 'b, const M: usize, U> { | 
|  | 5 | + | -----------------^^-----^^-------------------- help: reorder the parameters: lifetimes, then consts and types: `<'a, 'b, const N: usize, T, const M: usize, U>` | 
| 6 | 6 | 
 | 
| 7 | 7 | error[E0747]: lifetime provided when a type was expected | 
| 8 |  | - --> $DIR/argument_order.rs:13:23 | 
|  | 8 | + --> $DIR/argument_order.rs:15:19 | 
| 9 | 9 |  | | 
| 10 |  | -LL | let _: AlsoBad<7, 'static, u32, 'static, 17, u16>; | 
| 11 |  | - |  ^^^^^^^ | 
|  | 10 | +LL | let _: Bad<7, 'static, u32, 'static, 17, u16>; | 
|  | 11 | + | ^^^^^^^ | 
| 12 | 12 |  | | 
| 13 | 13 |  = note: lifetime arguments must be provided before type arguments | 
| 14 | 14 |  = help: reorder the arguments: lifetimes, then type and consts: `<'a, 'b, N, T, M, U>` | 
|  | 
0 commit comments