]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / multiple-def-uses-in-one-fn.stderr
index 4df2f52a9e427e795b4439727e7cbfd17a105717..f4d8b4509d43d1942614519e10049e129f5dcf2a 100644 (file)
@@ -1,8 +1,8 @@
 error[E0277]: the trait bound `&'static B: From<&A>` is not satisfied
-  --> $DIR/multiple-def-uses-in-one-fn.rs:9:45
+  --> $DIR/multiple-def-uses-in-one-fn.rs:10:9
    |
-LL | fn f<A, B: 'static>(a: &'static A, b: B) -> (X<A, B>, X<B, A>) {
-   |                                             ^^^^^^^^^^^^^^^^^^ the trait `From<&A>` is not implemented for `&'static B`
+LL |     (a, a)
+   |         ^ the trait `From<&A>` is not implemented for `&'static B`
    |
    = note: required because of the requirements on the impl of `Into<&'static B>` for `&A`
 help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement