blob: 24c41a9088b994d267dea8bfb82c4e9f90ef5bfb [file] [log] [blame]
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 type arguments but 3 type arguments were supplied
}