]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/issue-79187.stderr
Rollup merge of #89605 - camelid:fix-version, r=nagisa
[rust.git] / src / test / ui / lifetimes / issue-79187.stderr
1 error: implementation of `FnOnce` is not general enough
2   --> $DIR/issue-79187.rs:5:5
3    |
4 LL |     thing(f);
5    |     ^^^^^ implementation of `FnOnce` is not general enough
6    |
7    = note: closure with signature `fn(&'2 u32)` must implement `FnOnce<(&'1 u32,)>`, for any lifetime `'1`...
8    = note: ...but it actually implements `FnOnce<(&'2 u32,)>`, for some specific lifetime `'2`
9
10 error: aborting due to previous error
11