]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/variance/variance-use-invariant-struct-1.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / variance / variance-use-invariant-struct-1.stderr
index 31deefb535e94cafa528747f3d5e4a7bc3ae0934..7063f1c9c8f974c5953eeaee4ca6d090fcb13715 100644 (file)
@@ -4,8 +4,8 @@ error[E0308]: mismatched types
 LL |     v
    |     ^ lifetime mismatch
    |
-   = note: expected type `SomeStruct<&'min ()>`
-              found type `SomeStruct<&'max ()>`
+   = note: expected struct `SomeStruct<&'min ()>`
+              found struct `SomeStruct<&'max ()>`
 note: the lifetime `'min` as defined on the function body at 8:8...
   --> $DIR/variance-use-invariant-struct-1.rs:8:8
    |
@@ -23,8 +23,8 @@ error[E0308]: mismatched types
 LL |     v
    |     ^ lifetime mismatch
    |
-   = note: expected type `SomeStruct<&'max ()>`
-              found type `SomeStruct<&'min ()>`
+   = note: expected struct `SomeStruct<&'max ()>`
+              found struct `SomeStruct<&'min ()>`
 note: the lifetime `'min` as defined on the function body at 15:8...
   --> $DIR/variance-use-invariant-struct-1.rs:15:8
    |