]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type-check/issue-40294.stderr
New upstream version 1.20.0+dfsg1
[rustc.git] / src / test / ui / type-check / issue-40294.stderr
index bf03e52369feb8b4a50423ab0be4230d1c039e59..bb3a371b26e0ceefba9b25e1aff1edc1f6cc28af 100644 (file)
@@ -1,4 +1,4 @@
-error[E0282]: type annotations needed
+error[E0283]: type annotations required: cannot resolve `&'a T: Foo`
   --> $DIR/issue-40294.rs:15:1
    |
 15 | / fn foo<'a,'b,T>(x: &'a T, y: &'b T)
@@ -8,7 +8,9 @@ error[E0282]: type annotations needed
 19 | |     x.foo();
 20 | |     y.foo();
 21 | | }
-   | |_^ cannot infer type for `&'a T`
+   | |_^
+   |
+   = note: required by `Foo`
 
-error: aborting due to previous error(s)
+error: aborting due to previous error