]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/variance/variance-invariant-arg-object.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / variance / variance-invariant-arg-object.stderr
index 8ff1e23e8add826c9d80e291e937f8b34a2bdf6e..13ee9b9da3c982d38ef80c8ff1dbf24d1114d5a2 100644 (file)
@@ -4,8 +4,8 @@ error[E0308]: mismatched types
 LL |     v
    |     ^ lifetime mismatch
    |
-   = note: expected type `dyn Get<&'min i32>`
-              found type `dyn Get<&'max i32>`
+   = note: expected trait object `dyn Get<&'min i32>`
+              found trait object `dyn Get<&'max i32>`
 note: the lifetime `'min` as defined on the function body at 7:21...
   --> $DIR/variance-invariant-arg-object.rs:7:21
    |
@@ -23,8 +23,8 @@ error[E0308]: mismatched types
 LL |     v
    |     ^ lifetime mismatch
    |
-   = note: expected type `dyn Get<&'max i32>`
-              found type `dyn Get<&'min i32>`
+   = note: expected trait object `dyn Get<&'max i32>`
+              found trait object `dyn Get<&'min i32>`
 note: the lifetime `'min` as defined on the function body at 14:21...
   --> $DIR/variance-invariant-arg-object.rs:14:21
    |