2024-03-29 18:21:25 -05:00
|
|
|
//@ known-bug: #119924
|
2024-06-30 12:08:45 -05:00
|
|
|
//@ compile-flags: -Znext-solver
|
2024-03-29 18:21:25 -05:00
|
|
|
#![feature(const_trait_impl, effects)]
|
|
|
|
|
|
|
|
struct S;
|
|
|
|
#[const_trait]
|
|
|
|
trait Trait<const N: u32> {}
|
|
|
|
|
|
|
|
const fn f<T: Trait<{
|
|
|
|
struct I<U: ~const Trait<0>>(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() {}
|