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