summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-46771.rs
blob: 22be8d6af8a7f9b5711cd940a687851dd80a5439 (plain)
1
2
3
4
fn main() {
    struct Foo;
    (1 .. 2).find(|_| Foo(0) == 0); //~ ERROR expected function, found `Foo`
}