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 warning: the feature `const_generics` is incomplete and may cause the compiler to crash
14 --> $DIR/const-param-before-other-params.rs:1:12
16 LL | #![feature(const_generics)]
19 = note: `#[warn(incomplete_features)]` on by default
21 error: aborting due to 2 previous errors