blob: 4957bcf3f737190aeebe753995923b2bf2410300 [file] [log] [blame]
error: lifetime may not live long enough
--> $DIR/regions-early-bound-error-method.rs:20:9
|
LL | impl<'a> Box<'a> {
| -- lifetime `'a` defined here
LL | fn or<'b,G:GetRef<'b>>(&self, g2: G) -> &'a isize {
| -- lifetime `'b` defined here
LL | g2.get()
| ^^^^^^^^ returning this value requires that `'b` must outlive `'a`
|
= help: consider adding the following bound: `'b: 'a`
error: aborting due to previous error