rust/tests/ui/suggestions/issue-99240.rs

7 lines
126 B
Rust
Raw Normal View History

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