rust/tests/ui/unboxed-closures/issue-30906.stderr

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

12 lines
442 B
Plaintext
Raw Normal View History

error: implementation of `FnOnce` is not general enough
2022-04-01 17:13:25 +00:00
--> $DIR/issue-30906.rs:18:5
2019-11-15 16:40:59 +00:00
|
LL | test(Compose(f, |_| {}));
| ^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough
|
= note: `fn(&'2 str) -> T` must implement `FnOnce<(&'1 str,)>`, for any lifetime `'1`...
= note: ...but it actually implements `FnOnce<(&'2 str,)>`, for some specific lifetime `'2`
2019-11-15 16:40:59 +00:00
error: aborting due to previous error