2015-02-12 09:29:52 -06:00
|
|
|
use std::marker;
|
|
|
|
|
|
|
|
struct Foo<A, B, C = (A, B)>(
|
|
|
|
marker::PhantomData<(A,B,C)>);
|
2014-01-30 11:28:02 -06:00
|
|
|
|
2017-05-21 06:11:08 -05:00
|
|
|
impl<A, B, C> Foo<A, B, C> {
|
2015-02-12 09:29:52 -06:00
|
|
|
fn new() -> Foo<A, B, C> {Foo(marker::PhantomData)}
|
2014-01-30 11:28:02 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2015-01-08 04:54:35 -06:00
|
|
|
Foo::<isize>::new();
|
2023-02-23 11:27:06 -06:00
|
|
|
//~^ ERROR struct takes at least 2 generic arguments but 1 generic argument
|
2014-01-30 11:28:02 -06:00
|
|
|
}
|