blob: 66afbb58ad49027474e8b7701ee577bc8cb14608 [file] [log] [blame]
use std::marker;
struct Foo<A, B, C = (A, B)>(
marker::PhantomData<(A,B,C)>);
impl<A, B, C> Foo<A, B, C> {
fn new() -> Foo<A, B, C> {Foo(marker::PhantomData)}
}
fn main() {
Foo::<isize>::new();
//~^ ERROR this struct takes at least 2 generic arguments but 1 generic argument
}