]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/object-lifetime/object-lifetime-default-elision.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / object-lifetime / object-lifetime-default-elision.nll.stderr
index e94f2a92125cd8a5cdb0b70fdb8fcf4df5e76eba..900cdfca2443808edb96ca0db61339a2d04463d3 100644 (file)
@@ -8,6 +8,8 @@ LL | fn load3<'a,'b>(ss: &'a dyn SomeTrait) -> &'b dyn SomeTrait {
 ...
 LL |     ss
    |     ^^ returning this value requires that `'a` must outlive `'b`
+   |
+   = help: consider adding the following bound: `'a: 'b`
 
 error: aborting due to previous error