]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/issue-99565.rs
Rollup merge of #102846 - zertosh:update-syn, r=dtolnay
[rust.git] / src / test / ui / closures / issue-99565.rs
1 #![crate_type = "lib"]
2
3 fn foo<T, U>(_: U) {}
4
5 fn bar() {
6     foo(|| {}); //~ ERROR type annotations needed
7 }