// This test is for regression of issue #145611 // There should not be cycle error in effective_visibilities query. trait LocalTrait {} struct SomeType; fn impls_trait() {} fn foo() -> impl Sized { impls_trait::(); //~ ERROR the trait bound `SomeType: LocalTrait` is not satisfied [E0277] } fn main() {}