fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0623]: lifetime mismatch 2 --> $DIR/regions-free-region-ordering-callee.rs:13:5 3 | 4LL | fn ordering2<'a, 'b>(x: &'a &'b usize, y: &'a usize) -> &'b usize { 5 | ------------- --------- 6 | | 7 | this parameter and the return type are declared with different lifetimes... 8LL | // However, it is not safe to assume that 'b <= 'a 9LL | &*y 10 | ^^^ ...but data from `x` is returned here 11 12error[E0623]: lifetime mismatch 13 --> $DIR/regions-free-region-ordering-callee.rs:18:24 14 | 15LL | fn ordering3<'a, 'b>(x: &'a usize, y: &'b usize) -> &'a &'b usize { 16 | --------- ------------- 17 | | 18 | this parameter and the return type are declared with different lifetimes... 19LL | // Do not infer an ordering from the return value. 20LL | let z: &'b usize = &*x; 21 | ^^^ ...but data from `x` is returned here 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0623`.