]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17551.rs
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
[rust.git] / src / test / ui / issues / issue-17551.rs
1 use std::marker;
2
3 struct B<T>(marker::PhantomData<T>);
4
5 fn main() {
6     let foo = B(marker::PhantomData); //~ ERROR type annotations needed
7     let closure = || foo;
8 }