]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions/regions-close-object-into-object-2.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / regions / regions-close-object-into-object-2.stderr
index da995a96310c2fbae3aa842c51db7070f214d1b0..78d2371cf53b29f2ebb14535c88872e0bc57ed65 100644 (file)
@@ -9,11 +9,11 @@ LL |     box B(&*v) as Box<dyn X>
 help: consider changing the trait object's explicit `'static` bound to the lifetime of argument `v`
    |
 LL | fn g<'a, T: 'static>(v: Box<dyn A<T> + 'a>) -> Box<dyn X + 'a> {
-   |                                                            ^^
+   |                                                            ~~
 help: alternatively, add an explicit `'static` bound to this reference
    |
 LL | fn g<'a, T: 'static>(v: Box<(dyn A<T> + 'static)>) -> Box<dyn X + 'static> {
-   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^
+   |                         ~~~~~~~~~~~~~~~~~~~~~~~~~
 
 error: aborting due to previous error