136023e0 XL |
1 | // check-pass |
2 | #![feature(const_generics, const_evaluatable_checked, const_generics_defaults)] |
3 | #![allow(incomplete_features)] |
4 | struct Foo<const N: usize, const M: usize = { N + 1 }>; |
5 | struct Bar<const N: usize>(Foo<N, 3>); |
6 | fn main() {} |