]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions/regions-assoc-type-in-supertrait-outlives-container.migrate.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / regions / regions-assoc-type-in-supertrait-outlives-container.migrate.nll.stderr
index 4944f2649b738690ffeeeae6614fd6a1a24ef1c3..9bb385b0dcdc8e0c0801f5b9003619c2450cad20 100644 (file)
@@ -8,6 +8,8 @@ LL | fn with_assoc<'a,'b>() {
 ...
 LL |     let _: &'a WithAssoc<TheType<'b>> = loop { };
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'b` must outlive `'a`
+   |
+   = help: consider adding the following bound: `'b: 'a`
 
 error: aborting due to previous error