1 error: lifetime parameters must be declared prior to const parameters
2 --> $DIR/const-param-before-other-params.rs:6: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:11:21
10 LL | fn foo<const X: (), T>(_: &T) {}
11 | --------------^- help: reorder the parameters: lifetimes, then types, then consts: `<T, const X: ()>`
13 error: `()` is forbidden as the type of a const generic parameter
14 --> $DIR/const-param-before-other-params.rs:6:17
16 LL | fn bar<const X: (), 'a>(_: &'a ()) {
19 = note: the only supported types are integers, `bool` and `char`
20 = note: more complex types are supported with `#[feature(const_generics)]`
22 error: `()` is forbidden as the type of a const generic parameter
23 --> $DIR/const-param-before-other-params.rs:11:17
25 LL | fn foo<const X: (), T>(_: &T) {}
28 = note: the only supported types are integers, `bool` and `char`
29 = note: more complex types are supported with `#[feature(const_generics)]`
31 error: aborting due to 4 previous errors