warning: the feature `const_generics` is incomplete and may cause the compiler to crash --> $DIR/const-param-before-other-params.rs:1:12 | LL | #![feature(const_generics)] | ^^^^^^^^^^^^^^ error: type parameters must be declared prior to const parameters --> $DIR/const-param-before-other-params.rs:4:21 | LL | fn foo(_: T) { | --------------^- help: reorder the parameters: lifetimes, then types, then consts: `` error: lifetime parameters must be declared prior to const parameters --> $DIR/const-param-before-other-params.rs:9:21 | LL | fn bar(_: &'a ()) { | --------------^^- help: reorder the parameters: lifetimes, then types, then consts: `<'a, const X: ()>` error: const generics in any position are currently unsupported --> $DIR/const-param-before-other-params.rs:4:14 | LL | fn foo(_: T) { | ^ error: const generics in any position are currently unsupported --> $DIR/const-param-before-other-params.rs:9:14 | LL | fn bar(_: &'a ()) { | ^ error: aborting due to 4 previous errors