]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hrtb/issue-46989.nll.stderr
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
[rust.git] / src / test / ui / hrtb / issue-46989.nll.stderr
1 error: implementation of `Foo` is not general enough
2   --> $DIR/issue-46989.rs:38:5
3    |
4 LL |     assert_foo::<fn(&i32)>();
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
6    |
7    = note: `Foo` would have to be implemented for the type `for<'r> fn(&'r i32)`
8    = note: ...but `Foo` is actually implemented for the type `fn(&'0 i32)`, for some specific lifetime `'0`
9
10 error: aborting due to previous error
11