]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/variance/variance-covariant-arg-object.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / variance / variance-covariant-arg-object.nll.stderr
index 63ab7fe96512d237c35036de0f8782893ff013e8..37fdea960be7ca2703c7680397537a65fae83ed2 100644 (file)
@@ -8,6 +8,8 @@ LL | fn get_min_from_max<'min, 'max>(v: Box<dyn Get<&'max i32>>)
 ...
 LL |     v
    |     ^ returning this value requires that `'min` must outlive `'max`
+   |
+   = help: consider adding the following bound: `'min: 'max`
 
 error: lifetime may not live long enough
   --> $DIR/variance-covariant-arg-object.rs:22:5
@@ -19,6 +21,8 @@ LL | fn get_max_from_min<'min, 'max, G>(v: Box<dyn Get<&'min i32>>)
 ...
 LL |     v
    |     ^ returning this value requires that `'min` must outlive `'max`
+   |
+   = help: consider adding the following bound: `'min: 'max`
 
 error: aborting due to 2 previous errors