rust/tests/ui/suggestions/issue-99240.rs
2023-01-11 09:32:08 +00:00

7 lines
126 B
Rust

fn fmt(it: &(std::cell::Cell<Option<impl FnOnce()>>,)) {
(it.0.take())()
//~^ ERROR expected function
}
fn main() {}