fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error: lifetime may not live long enough 2 --> $DIR/regions-early-bound-error-method.rs:20:9 3 | 4LL | impl<'a> Box<'a> { 5 | -- lifetime `'a` defined here 6LL | fn or<'b,G:GetRef<'b>>(&self, g2: G) -> &'a isize { 7 | -- lifetime `'b` defined here 8LL | g2.get() 9 | ^^^^^^^^ returning this value requires that `'b` must outlive `'a` 10 | 11 = help: consider adding the following bound: `'b: 'a` 12 13error: aborting due to previous error 14