]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/object-lifetime/object-lifetime-default-from-rptr-box-error.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / object-lifetime / object-lifetime-default-from-rptr-box-error.stderr
index 99f0ce0602b11c9725017d30565e5f2b006108c0..86ec58d3f068a114f22140f20f89784b4466c248 100644 (file)
@@ -4,8 +4,8 @@ error[E0308]: mismatched types
 LL |     ss.t = t;
    |            ^ lifetime mismatch
    |
-   = note: expected type `&'a std::boxed::Box<(dyn Test + 'static)>`
-              found type `&'a std::boxed::Box<(dyn Test + 'a)>`
+   = note: expected reference `&'a std::boxed::Box<(dyn Test + 'static)>`
+              found reference `&'a std::boxed::Box<(dyn Test + 'a)>`
 note: the lifetime `'a` as defined on the function body at 14:6...
   --> $DIR/object-lifetime-default-from-rptr-box-error.rs:14:6
    |