summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/issues/issue-96654.rs
blob: 8cf786dbe40bf3eff6873059fcc6076a6593aec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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() {}