]> git.proxmox.com Git - rustc.git/blame - src/test/ui/variance/variance-use-contravariant-struct-1.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / variance / variance-use-contravariant-struct-1.stderr
CommitLineData
48663c56 1error: lifetime may not live long enough
923072b8 2 --> $DIR/variance-use-contravariant-struct-1.rs:10:5
48663c56
XL
3 |
4LL | fn foo<'min,'max>(v: SomeStruct<&'max ()>)
5 | ---- ---- lifetime `'max` defined here
6 | |
7 | lifetime `'min` defined here
8...
9LL | v
5099ac24 10 | ^ function was supposed to return data with lifetime `'max` but it is returning data with lifetime `'min`
60c5eb7d
XL
11 |
12 = help: consider adding the following bound: `'min: 'max`
48663c56
XL
13
14error: aborting due to previous error
15