]> git.proxmox.com Git - rustc.git/blame - src/test/ui/variance/variance-use-covariant-struct-1.base.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / variance / variance-use-covariant-struct-1.base.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
04454e1e 2 --> $DIR/variance-use-covariant-struct-1.rs:14:5
b7449926 3 |
532ac7d7 4LL | v
b7449926
XL
5 | ^ lifetime mismatch
6 |
60c5eb7d
XL
7 = note: expected struct `SomeStruct<&'max ()>`
8 found struct `SomeStruct<&'min ()>`
c295e0f8 9note: the lifetime `'min` as defined here...
04454e1e 10 --> $DIR/variance-use-covariant-struct-1.rs:10:8
b7449926
XL
11 |
12LL | fn foo<'min,'max>(v: SomeStruct<&'min ()>)
13 | ^^^^
c295e0f8 14note: ...does not necessarily outlive the lifetime `'max` as defined here
04454e1e 15 --> $DIR/variance-use-covariant-struct-1.rs:10:13
b7449926
XL
16 |
17LL | fn foo<'min,'max>(v: SomeStruct<&'min ()>)
18 | ^^^^
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0308`.