rust/tests/ui/const-generics/generic_const_exprs/unused-complex-default-expr.rs

7 lines
186 B
Rust
Raw Normal View History

// check-pass
2021-10-23 10:57:49 -05:00
#![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() {}