Add regression test for #96654

This commit is contained in:
Yuki Okushi 2022-05-08 11:27:43 +09:00
parent e612ce9ce5
commit a911452787
No known key found for this signature in database
GPG Key ID: 379CEEFDD63E5DD7

View File

@ -0,0 +1,15 @@
// 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() {}