blob: 6c00411561e3270c3151077e29f02984b3c2255f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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 struct takes at least 2 generic arguments but 1 generic argument
}
|