rust/src/test/ui/issues/issue-17551.rs
2018-12-25 21:08:33 -07:00

9 lines
168 B
Rust

use std::marker;
struct B<T>(marker::PhantomData<T>);
fn main() {
let foo = B(marker::PhantomData); //~ ERROR type annotations needed
let closure = || foo;
}