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