// compile-flags: -Ztrait-solver=next // check-pass #![feature(rustc_attrs)] #[rustc_coinductive] trait Trait {} #[rustc_coinductive] trait Indirect {} impl Indirect for T {} impl<'a> Trait for &'a () where &'a (): Indirect {} fn impls_trait() {} fn main() { impls_trait::<&'static ()>(); }