summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-99240.rs
blob: 2115a42662e1af716dd68e55680a34c156848765 (plain)
1
2
3
4
5
6
fn fmt(it: &(std::cell::Cell<Option<impl FnOnce()>>,)) {
    (it.0.take())()
    //~^ ERROR expected function
}

fn main() {}