]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions/region-object-lifetime-in-coercion.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / regions / region-object-lifetime-in-coercion.nll.stderr
index 43acbfd412d91fc602e8bdaead8d452899f3b088..767853d81480e8fcdb7d2f99ad0877cf02ac76ea 100644 (file)
@@ -32,6 +32,8 @@ LL | fn d<'a,'b>(v: &'a [u8]) -> Box<dyn Foo+'b> {
    |      lifetime `'a` defined here
 LL |     Box::new(v)
    |     ^^^^^^^^^^^ returning this value requires that `'a` must outlive `'b`
+   |
+   = help: consider adding the following bound: `'a: 'b`
 
 error: aborting due to 4 previous errors