blob: a283323742a0f8d7cc72f676b36d8f4047f09fee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use std::marker;
struct Heap;
struct Vec<T, A = Heap>(
marker::PhantomData<(T,A)>);
impl<T, A> Vec<T, A> {
fn new() -> Vec<T, A> {Vec(marker::PhantomData)}
}
fn main() {
Vec::<isize, Heap, bool>::new();
//~^ ERROR this struct takes at most 2 generic arguments but 3 generic arguments were supplied
}
|