]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions/regions-creating-enums3.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / regions / regions-creating-enums3.nll.stderr
index e35a878fce17768339f1b269f3dfb8ae42ecfa3b..41d609b56d233a2967822f30f7f120e52dcaf668 100644 (file)
@@ -7,6 +7,8 @@ LL | fn mk_add_bad1<'a,'b>(x: &'a Ast<'a>, y: &'b Ast<'b>) -> Ast<'a> {
    |                lifetime `'a` defined here
 LL |     Ast::Add(x, y)
    |     ^^^^^^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b`
+   |
+   = help: consider adding the following bound: `'b: 'a`
 
 error: aborting due to previous error