]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-17758.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-17758.stderr
index adcbb62e3d5bda4ee80c04f2e5e0fbb9494c1511..adfc3f5085826b020f35e2bc688eec204833b4a3 100644 (file)
@@ -22,9 +22,13 @@ note: but, the lifetime must be valid for the lifetime `'a` as defined on the tr
    |
 LL | trait Foo<'a> {
    |           ^^
-   = note: ...so that the types are compatible:
-           expected &'a Self
-              found &Self
+note: ...so that the types are compatible
+  --> $DIR/issue-17758.rs:7:14
+   |
+LL |         self.foo();
+   |              ^^^
+   = note: expected  `&'a Self`
+              found  `&Self`
 
 error: aborting due to previous error