// Regression test for . // Ensures we don't ICE when we encounter a `HostEffectPredicate` when computing // the "item super predicates" for `Assoc`. //@ compile-flags: -Znext-solver //@ check-pass #![feature(const_trait_impl)] #[const_trait] trait Trait { type Assoc: const Trait; } const fn needs_trait() {} fn test() { const { needs_trait::() }; } fn main() {}