rust/tests/ui/lifetimes/issue-79187.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
211 B
Rust
Raw Permalink Normal View History

fn thing(x: impl FnOnce(&u32)) {}
fn main() {
let f = |_| ();
2022-05-22 02:05:15 -04:00
thing(f);
//~^ ERROR implementation of `FnOnce` is not general enough
//~| ERROR implementation of `FnOnce` is not general enough
}