rust/tests/incremental/const-generics/issue-61338.rs

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

13 lines
170 B
Rust
Raw Normal View History

// revisions:rpass1
struct Struct<T>(T);
impl<T, const N: usize> Struct<[T; N]> {
fn f() {}
fn g() { Self::f(); }
}
fn main() {
Struct::<[u32; 3]>::g();
}