]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/variance/variance-use-contravariant-struct-1.stderr
Rollup merge of #90349 - willcrichton:example-analyzer, r=jyn514
[rust.git] / src / test / ui / variance / variance-use-contravariant-struct-1.stderr
index 423c9a601f456dd293e47e9754fa9880c8dcafec..ec0cb22cdb6ba0d070af46f439b954b7842b8e49 100644 (file)
@@ -6,12 +6,12 @@ LL |     v
    |
    = note: expected struct `SomeStruct<&'min ()>`
               found struct `SomeStruct<&'max ()>`
-note: the lifetime `'min` as defined on the function body at 8:8...
+note: the lifetime `'min` as defined here...
   --> $DIR/variance-use-contravariant-struct-1.rs:8:8
    |
 LL | fn foo<'min,'max>(v: SomeStruct<&'max ()>)
    |        ^^^^
-note: ...does not necessarily outlive the lifetime `'max` as defined on the function body at 8:13
+note: ...does not necessarily outlive the lifetime `'max` as defined here
   --> $DIR/variance-use-contravariant-struct-1.rs:8:13
    |
 LL | fn foo<'min,'max>(v: SomeStruct<&'max ()>)