blob: 01964f652ee090f30bb36b45b1dde405014a43a9 [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 type arguments but only 1 type argument was supplied
}