Add regression test for #96654
This commit is contained in:
parent
e612ce9ce5
commit
a911452787
15
src/test/ui/const-generics/issues/issue-96654.rs
Normal file
15
src/test/ui/const-generics/issues/issue-96654.rs
Normal 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() {}
|
Loading…
Reference in New Issue
Block a user