Skip to content

Commit a911452

Browse files
committed
Add regression test for rust-lang#96654
1 parent e612ce9 commit a911452

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// check-pass
2+
3+
struct A<const M: u32> {}
4+
5+
struct B<const M: u32> {}
6+
7+
impl<const M: u32> B<M> {
8+
const M: u32 = M;
9+
}
10+
11+
struct C<const M: u32> {
12+
a: A<{ B::<1>::M }>,
13+
}
14+
15+
fn main() {}

0 commit comments

Comments
 (0)