rust/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-85455.stderr

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

26 lines
1012 B
Plaintext
Raw Normal View History

error[E0277]: the trait bound `for<'a> T: SomeTrait<'a>` is not satisfied
--> $DIR/issue-85455.rs:8:14
|
LL | callee::<fn(&()) -> <T as SomeTrait<'_>>::Associated>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'a> SomeTrait<'a>` is not implemented for `T`
|
help: consider restricting type parameter `T`
|
LL | fn give_me_ice<T: for<'a> SomeTrait<'a>>() {
| +++++++++++++++++++++++
2022-09-21 10:57:30 -05:00
error[E0277]: the trait bound `for<'a> T: SomeTrait<'a>` is not satisfied
2021-09-04 07:00:10 -05:00
--> $DIR/issue-85455.rs:8:5
|
LL | callee::<fn(&()) -> <T as SomeTrait<'_>>::Associated>();
2022-09-21 10:57:30 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'a> SomeTrait<'a>` is not implemented for `T`
2021-09-04 07:00:10 -05:00
|
help: consider restricting type parameter `T`
|
2022-09-21 10:57:30 -05:00
LL | fn give_me_ice<T: for<'a> SomeTrait<'a>>() {
| +++++++++++++++++++++++
2021-09-04 07:00:10 -05:00
error: aborting due to 2 previous errors
2021-09-04 07:00:10 -05:00
For more information about this error, try `rustc --explain E0277`.