summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/issue-99565.rs
blob: 3a30d2ee0349934f7b344f2b705048eaff5d7b96 (plain)
1
2
3
4
5
6
7
#![crate_type = "lib"]

fn foo<T, U>(_: U) {}

fn bar() {
    foo(|| {}); //~ ERROR type annotations needed
}