]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/lifetimes/lifetime-bound-will-change-warning.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-bound-will-change-warning.stderr
index 93160a1c5e51520624751ad74430bac4c2f10996..91cdc0205d8411719888ccc394f6f210b9150fd6 100644 (file)
@@ -4,8 +4,8 @@ error[E0308]: mismatched types
 LL |     ref_obj(x)
    |             ^ lifetime mismatch
    |
-   = note: expected reference `&std::boxed::Box<(dyn std::ops::Fn() + 'static)>`
-              found reference `&std::boxed::Box<(dyn std::ops::Fn() + 'a)>`
+   = note: expected reference `&Box<(dyn Fn() + 'static)>`
+              found reference `&Box<(dyn Fn() + 'a)>`
 note: the lifetime `'a` as defined on the function body at 32:10...
   --> $DIR/lifetime-bound-will-change-warning.rs:32:10
    |
@@ -19,8 +19,8 @@ error[E0308]: mismatched types
 LL |     lib::ref_obj(x)
    |                  ^ lifetime mismatch
    |
-   = note: expected reference `&std::boxed::Box<(dyn std::ops::Fn() + 'static)>`
-              found reference `&std::boxed::Box<(dyn std::ops::Fn() + 'a)>`
+   = note: expected reference `&Box<(dyn Fn() + 'static)>`
+              found reference `&Box<(dyn Fn() + 'a)>`
 note: the lifetime `'a` as defined on the function body at 37:12...
   --> $DIR/lifetime-bound-will-change-warning.rs:37:12
    |