]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn.stderr
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / type-alias-impl-trait / multiple-def-uses-in-one-fn.stderr
1 error[E0277]: the trait bound `&'static B: From<&A>` is not satisfied
2   --> $DIR/multiple-def-uses-in-one-fn.rs:9:45
3    |
4 LL | fn f<A, B: 'static>(a: &'static A, b: B) -> (X<A, B>, X<B, A>) {
5    |                                             ^^^^^^^^^^^^^^^^^^ the trait `From<&A>` is not implemented for `&'static B`
6    |
7    = note: required for `&A` to implement `Into<&'static B>`
8 help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
9    |
10 LL | fn f<A, B: 'static>(a: &'static A, b: B) -> (X<A, B>, X<B, A>) where &'static B: From<&A> {
11    |                                                                ++++++++++++++++++++++++++
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.