]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/issue-79187.rs
Add 'src/tools/miri/' from commit '75dd959a3a40eb5b4574f8d2e23aa6efbeb33573'
[rust.git] / src / test / ui / lifetimes / issue-79187.rs
1 fn thing(x: impl FnOnce(&u32)) {}
2
3 fn main() {
4     let f = |_| ();
5     thing(f);
6     //~^ ERROR mismatched types
7     //~^^ ERROR implementation of `FnOnce` is not general enough
8 }