mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
14 lines
296 B
Rust
14 lines
296 B
Rust
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
|
|
}
|