//@ aux-build:generics_of_parent.rs //@ check-pass #![feature(generic_const_exprs)] #![allow(incomplete_features)] extern crate generics_of_parent; use generics_of_parent::{Foo, S}; fn main() { // regression test for #87603 const N: usize = 2; let x: S = S::test(); } // regression test for #87674 fn new(a: U) -> U { a } fn foo(bar: &mut Foo) where [(); N + 1]: , { *bar = new(loop {}); }