]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/generic_arg_infer/dont-use-defaults.rs
2 #![feature(generic_arg_infer)]
4 // test that we dont use defaults to aide in type inference
6 struct Foo
<const N
: usize = 2>;
7 impl<const N
: usize> Foo
<N
> {
8 fn make_arr() -> [(); N
] {
14 let [(), (), ()] = Foo
::<_
>::make_arr();