1 // Checks that lifetimes cannot be interspersed between consts and types.
3 struct Foo<const N: usize, 'a, T = u32>(&'a (), T);
4 //~^ ERROR lifetime parameters must be declared prior to type and const parameters
6 struct Bar<const N: usize, T = u32, 'a>(&'a (), T);
7 //~^ ERROR lifetime parameters must be declared prior to type and const parameters