2 #![feature(const_generics)]
3 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
5 // This test checks that generic parameter re-ordering diagnostic suggestions mention that
6 // consts come after types and lifetimes when the `const_generics` feature is enabled.
7 // We cannot run rustfix on this test because of the above const generics warning.
12 pub fn do_things<T, 'a, 'b: 'a>() {
13 //~^ ERROR lifetime parameters must be declared prior to type parameters