fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: lifetime may not live long enough 2 --> $DIR/empty-binders-err.rs:20:12 3 | 4LL | fn covariance<'a, 'b, 'upper>(v: bool) 5 | -- ------ lifetime `'upper` defined here 6 | | 7 | lifetime `'a` defined here 8... 9LL | let _: &'upper () = match v { 10 | ^^^^^^^^^^ type annotation requires that `'a` must outlive `'upper` 11 | 12 = help: consider adding the following bound: `'a: 'upper` 13 14error: lifetime may not live long enough 15 --> $DIR/empty-binders-err.rs:20:12 16 | 17LL | fn covariance<'a, 'b, 'upper>(v: bool) 18 | -- ------ lifetime `'upper` defined here 19 | | 20 | lifetime `'b` defined here 21... 22LL | let _: &'upper () = match v { 23 | ^^^^^^^^^^ type annotation requires that `'b` must outlive `'upper` 24 | 25 = help: consider adding the following bound: `'b: 'upper` 26 27help: the following changes may resolve your lifetime errors 28 | 29 = help: add bound `'a: 'upper` 30 = help: add bound `'b: 'upper` 31 32error: lifetime may not live long enough 33 --> $DIR/empty-binders-err.rs:35:12 34 | 35LL | fn contra_fn<'a, 'b, 'lower>(v: bool) 36 | -- ------ lifetime `'lower` defined here 37 | | 38 | lifetime `'a` defined here 39... 40LL | let _: fn(&'lower ()) = match v { 41 | ^^^^^^^^^^^^^^ type annotation requires that `'lower` must outlive `'a` 42 | 43 = help: consider adding the following bound: `'lower: 'a` 44 45error: lifetime may not live long enough 46 --> $DIR/empty-binders-err.rs:48:12 47 | 48LL | fn contra_struct<'a, 'b, 'lower>(v: bool) 49 | -- ------ lifetime `'lower` defined here 50 | | 51 | lifetime `'a` defined here 52... 53LL | let _: Contra<'lower> = match v { 54 | ^^^^^^^^^^^^^^ type annotation requires that `'lower` must outlive `'a` 55 | 56 = help: consider adding the following bound: `'lower: 'a` 57 58error: aborting due to 4 previous errors 59