X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fvariance%2Fvariance-covariant-arg-object.nll.stderr;h=37fdea960be7ca2703c7680397537a65fae83ed2;hb=60c5eb7d04ee1e0108714fd93e704431aa9cf68e;hp=63ab7fe96512d237c35036de0f8782893ff013e8;hpb=e74abb32707ea6577e99daad63c09c1d5135f7dc;p=rustc.git diff --git a/src/test/ui/variance/variance-covariant-arg-object.nll.stderr b/src/test/ui/variance/variance-covariant-arg-object.nll.stderr index 63ab7fe965..37fdea960b 100644 --- a/src/test/ui/variance/variance-covariant-arg-object.nll.stderr +++ b/src/test/ui/variance/variance-covariant-arg-object.nll.stderr @@ -8,6 +8,8 @@ LL | fn get_min_from_max<'min, 'max>(v: Box>) ... 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>) ... 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