]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc1623.stderr
Rollup merge of #93663 - sunfishcode:sunfishcode/as-raw-name, r=joshtriplett
[rust.git] / src / test / ui / rfc1623.stderr
1 error: implementation of `FnOnce` is not general enough
2   --> $DIR/rfc1623.rs:28:8
3    |
4 LL |     f: &id,
5    |        ^^^ implementation of `FnOnce` is not general enough
6    |
7    = note: `fn(&'2 Foo<'_>) -> &'2 Foo<'_> {id::<&'2 Foo<'_>>}` must implement `FnOnce<(&'1 Foo<'b>,)>`, for any lifetime `'1`...
8    = note: ...but it actually implements `FnOnce<(&'2 Foo<'_>,)>`, for some specific lifetime `'2`
9
10 error: aborting due to previous error
11