Sign in
rust
/
rust
/
97b1c314892ef4497c0ce5656daa3a54c4e052d3
/
.
/
tests
/
ui
/
issues
/
issue-17551.rs
blob: a65957ce074efa11b6df24df5a8d3883e7c09d6b [
file
]
use
std
::
marker
;
struct
B
<
T
>(
marker
::
PhantomData
<
T
>);
fn
main
()
{
let
foo
=
B
(
marker
::
PhantomData
);
//~ ERROR type annotations needed
let
closure
=
||
foo
;
}