blob: 32a510d165438a2dc64a5f00168fed690811c1e5 [file] [log] [blame]
//~ ERROR the type `<() as StaticTy>::Item<'a>` does not fulfill the required lifetime
//@ compile-flags: -Znext-solver
// Regression test for rust-lang/trait-system-refactor-initiative#59
trait StaticTy {
type Item<'a>: 'static;
}
impl StaticTy for () {
type Item<'a> = &'a ();
}
fn main() {}