rust/tests/ui/issues/issue-17551.rs

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;
}