fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0491]: in type `&'a &'b ()`, reference has a longer lifetime than the data it references 2 --> $DIR/reference-outlives-referent.rs:7:18 3 | 4LL | const Q<'a, 'b>: &'a &'b () = &&(); 5 | ^^^^^^^^^^ 6 | 7note: the pointer is valid for the lifetime `'a` as defined here 8 --> $DIR/reference-outlives-referent.rs:7:9 9 | 10LL | const Q<'a, 'b>: &'a &'b () = &&(); 11 | ^^ 12note: but the referenced data is only valid for the lifetime `'b` as defined here 13 --> $DIR/reference-outlives-referent.rs:7:13 14 | 15LL | const Q<'a, 'b>: &'a &'b () = &&(); 16 | ^^ 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0491`.