rust/tests/ui/higher-rank-trait-bounds/issue-46989.stderr

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

12 lines
438 B
Plaintext
Raw Normal View History

error: implementation of `Foo` is not general enough
2022-04-01 12:13:25 -05:00
--> $DIR/issue-46989.rs:38:5
|
LL | assert_foo::<fn(&i32)>();
| ^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
|
2022-09-21 10:57:30 -05:00
= note: `Foo` would have to be implemented for the type `for<'a> fn(&'a i32)`
= note: ...but `Foo` is actually implemented for the type `fn(&'0 i32)`, for some specific lifetime `'0`
error: aborting due to previous error