]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic/generic-impl-less-params-with-defaults.rs
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / generic / generic-impl-less-params-with-defaults.rs
1 use std::marker;
2
3 struct Foo<A, B, C = (A, B)>(
4     marker::PhantomData<(A,B,C)>);
5
6 impl<A, B, C> Foo<A, B, C> {
7     fn new() -> Foo<A, B, C> {Foo(marker::PhantomData)}
8 }
9
10 fn main() {
11     Foo::<isize>::new();
12     //~^ ERROR wrong number of type arguments
13 }