//@ compile-flags: -Znext-solver //@ check-pass #![feature(rustc_attrs)] #![rustc_no_implicit_bounds] // Regression test for . // Tests that we don't try to replace `::Output` when replacing projections in the // required bounds for `dyn Trait`, b/c `V` is not relevant to the dyn type, which we were // previously encountering b/c we were walking into the existential projection bounds of the dyn // type itself. pub trait Trait: Super {} pub trait Super { type Output; } fn bound() {} fn visit_simd_operator() { bound::::Output>>(); } fn main() {}