//@ known-bug: #118244 //@ compile-flags: -Cdebuginfo=2 #![allow(incomplete_features)] #![feature(generic_const_exprs)] struct Inner; impl Inner where [(); N + M]: { fn i() -> Self { Self } } struct Outer(Inner) where [(); A + (B * 2)]:; impl Outer where [(); A + (B * 2)]: { fn o() -> Self { Self(Inner::i()) } } fn main() { Outer::<1, 1>::o(); }