rust/tests/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs
2024-02-16 20:02:50 +00:00

7 lines
187 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() {}