]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17551.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[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 }