fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `for<'a> T: SomeTrait<'a>` is not satisfied 2 --> $DIR/issue-85455.rs:8:14 3 | 4LL | callee::<fn(&()) -> <T as SomeTrait<'_>>::Associated>(); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'a> SomeTrait<'a>` is not implemented for `T` 6 | 7help: consider restricting type parameter `T` 8 | 9LL | fn give_me_ice<T: for<'a> SomeTrait<'a>>() { 10 | +++++++++++++++++++++++ 11 12error[E0277]: the trait bound `for<'a> T: SomeTrait<'a>` is not satisfied 13 --> $DIR/issue-85455.rs:8:5 14 | 15LL | callee::<fn(&()) -> <T as SomeTrait<'_>>::Associated>(); 16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'a> SomeTrait<'a>` is not implemented for `T` 17 | 18help: consider restricting type parameter `T` 19 | 20LL | fn give_me_ice<T: for<'a> SomeTrait<'a>>() { 21 | +++++++++++++++++++++++ 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0277`.