fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0491]: in type `&'a &'b usize`, reference has a longer lifetime than the data it references 2 --> $DIR/regions-free-region-ordering-callee-4.rs:5:68 3 | 4LL | fn ordering4<'a, 'b, F>(a: &'a usize, b: &'b usize, x: F) where F: FnOnce(&'a &'b usize) { 5 | ^^^^^^^^^^^^^^^^^^^^^ 6 | 7note: the pointer is valid for the lifetime `'a` as defined on the function body at 5:14 8 --> $DIR/regions-free-region-ordering-callee-4.rs:5:14 9 | 10LL | fn ordering4<'a, 'b, F>(a: &'a usize, b: &'b usize, x: F) where F: FnOnce(&'a &'b usize) { 11 | ^^ 12note: but the referenced data is only valid for the lifetime `'b` as defined on the function body at 5:18 13 --> $DIR/regions-free-region-ordering-callee-4.rs:5:18 14 | 15LL | fn ordering4<'a, 'b, F>(a: &'a usize, b: &'b usize, x: F) where F: FnOnce(&'a &'b usize) { 16 | ^^ 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0491`.