1 2 3 4 5 6 7 8
use std::marker; struct B<T>(marker::PhantomData<T>); fn main() { let foo = B(marker::PhantomData); //~ ERROR type annotations needed let closure = || foo; }