mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
7 lines
187 B
Rust
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() {}
|