rust/tests/ui/issues/issue-17551.rs
2023-01-11 09:32:08 +00: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;
}