fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: lifetime parameters must be declared prior to type and const parameters 2 --> $DIR/argument_order.rs:6:32 3 | 4LL | 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>` 6 7error[E0747]: lifetime provided when a type was expected 8 --> $DIR/argument_order.rs:13:23 9 | 10LL | let _: AlsoBad<7, 'static, u32, 'static, 17, u16>; 11 | ^^^^^^^ 12 | 13 = note: lifetime arguments must be provided before type arguments 14 = help: reorder the arguments: lifetimes, then type and consts: `<'a, 'b, N, T, M, U>` 15 16error: aborting due to 2 previous errors 17 18For more information about this error, try `rustc --explain E0747`.