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