use std::marker; struct Heap; struct Vec( marker::PhantomData<(T,A)>); impl Vec { fn new() -> Vec {Vec(marker::PhantomData)} } fn main() { Vec::::new(); //~^ ERROR wrong number of type arguments }