]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-17551.rs
Rollup merge of #106896 - Ezrashaw:str-cast-bool-emptyness, r=compiler-errors
[rust.git] / tests / 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 }