rust/tests/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs
2023-01-11 09:32:08 +00:00

7 lines
186 B
Rust

// check-pass
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
struct Foo<const N: usize, const M: usize = { N + 1 }>;
struct Bar<const N: usize>(Foo<N, 3>);
fn main() {}