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 22:07:41 +00:00
fn main() {
let foo = B(marker::PhantomData); //~ ERROR type annotations needed
2015-02-10 19:05:20 +00:00
let closure = || foo;
2014-10-25 22:07:41 +00:00
}