warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes --> $DIR/const-arg-type-arg-misordered.rs:1:12 | LL | #![feature(const_generics)] | ^^^^^^^^^^^^^^ | = note: `#[warn(incomplete_features)]` on by default = note: see issue #44580 for more information error[E0747]: constant provided when a type was expected --> $DIR/const-arg-type-arg-misordered.rs:6:35 | LL | fn foo() -> Array { | ^ | = note: type arguments must be provided before constant arguments = help: reorder the arguments: types, then consts: `` error: aborting due to previous error; 1 warning emitted For more information about this error, try `rustc --explain E0747`.