// Checks that lifetimes cannot be interspersed between consts and types. #![feature(const_generics)] #![allow(incomplete_features)] struct Foo(&'a (), T); //~^ Error lifetime parameters must be declared prior to const parameters struct Bar(&'a (), T); //~^ Error lifetime parameters must be declared prior to type parameters fn main() {}