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

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

13 lines
205 B
Rust
Raw Normal View History

// revisions:rpass1
pub struct Foo<T, const N: usize>([T; 0]);
impl<T, const N: usize> Foo<T, {N}> {
pub fn new() -> Self {
Foo([])
}
}
fn main() {
let _: Foo<u32, 0> = Foo::new();
}