1 error: lifetime parameters must be declared prior to const parameters
2 --> $DIR/const-param-before-other-params.rs:4:21
4 LL | fn bar<const X: (), 'a>(_: &'a ()) {
5 | --------------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, const X: ()>`
7 error: type parameters must be declared prior to const parameters
8 --> $DIR/const-param-before-other-params.rs:8:21
10 LL | fn foo<const X: (), T>(_: &T) {
11 | --------------^- help: reorder the parameters: lifetimes, then types, then consts: `<T, const X: ()>`
13 error: aborting due to 2 previous errors