fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
491 B15 linesraw
1error: lifetime may not live long enough
2  --> $DIR/variance-use-contravariant-struct-1.rs:10:5
3   |
4LL | fn foo<'min,'max>(v: SomeStruct<&'max ()>)
5   |        ---- ---- lifetime `'max` defined here
6   |        |
7   |        lifetime `'min` defined here
8...
9LL |     v
10   |     ^ function was supposed to return data with lifetime `'max` but it is returning data with lifetime `'min`
11   |
12   = help: consider adding the following bound: `'min: 'max`
13
14error: aborting due to previous error
15