//@ known-bug: #119924 //@ compile-flags: -Znext-solver #![feature(const_trait_impl, effects)] struct S; #[const_trait] trait Trait {} const fn f>(U); // should've gotten rejected during AST validation //~^ ICE no host param id for call in const yet no errors reported 0 }>>() {} pub fn main() {}