// Checks that lifetimes cannot be interspersed between consts and types. // revisions: full min #![cfg_attr(full, feature(const_generics))] #![feature(const_generics_defaults)] #![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() {}