mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
13 lines
171 B
Rust
13 lines
171 B
Rust
//@ 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();
|
|
}
|