mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
16 lines
187 B
Rust
16 lines
187 B
Rust
//@ check-pass
|
|
|
|
struct A<const M: u32> {}
|
|
|
|
struct B<const M: u32> {}
|
|
|
|
impl<const M: u32> B<M> {
|
|
const M: u32 = M;
|
|
}
|
|
|
|
struct C<const M: u32> {
|
|
a: A<{ B::<1>::M }>,
|
|
}
|
|
|
|
fn main() {}
|