fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
472 B14 linesraw
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