2015-02-12 09:29:52 -06:00
|
|
|
use std::marker;
|
|
|
|
|
|
|
|
struct B<T>(marker::PhantomData<T>);
|
2014-10-25 17:07:41 -05:00
|
|
|
|
|
|
|
fn main() {
|
2017-02-02 15:35:31 -06:00
|
|
|
let foo = B(marker::PhantomData); //~ ERROR type annotations needed
|
2015-02-10 13:05:20 -06:00
|
|
|
let closure = || foo;
|
2014-10-25 17:07:41 -05:00
|
|
|
}
|