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

9 lines
168 B
Rust
Raw Normal View History

use std::marker;
struct B<T>(marker::PhantomData<T>);
2014-10-26 00:07:41 +02:00
fn main() {
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
}