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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
168 B
Rust
Raw Normal View History

use std::marker;
struct B<T>(marker::PhantomData<T>);
2014-10-25 17:07:41 -05:00
fn main() {
let foo = B(marker::PhantomData); //~ ERROR type annotations needed
2015-02-10 13:05:20 -06:00
let closure = || foo;
2014-10-25 17:07:41 -05:00
}