rust/tests/ui/const-generics/issues/issue-96654.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
186 B
Rust
Raw Normal View History

2022-05-07 21:27:43 -05:00
// 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() {}