1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
4 fn foo<const X: (), T>(_: T) {
5 //~^ ERROR type parameters must be declared prior to const parameters
6 //~^^ ERROR const generics in any position are currently unsupported
9 fn bar<const X: (), 'a>(_: &'a ()) {
10 //~^ ERROR lifetime parameters must be declared prior to const parameters