fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
719 B20 linesraw
1error[E0312]: lifetime of reference outlives lifetime of borrowed content...
2  --> $DIR/regions-early-bound-error-method.rs:20:9
3   |
4LL |         g2.get()
5   |         ^^^^^^^^
6   |
7note: ...the reference is valid for the lifetime `'a` as defined on the impl at 18:6...
8  --> $DIR/regions-early-bound-error-method.rs:18:6
9   |
10LL | impl<'a> Box<'a> {
11   |      ^^
12note: ...but the borrowed content is only valid for the lifetime `'b` as defined on the method body at 19:11
13  --> $DIR/regions-early-bound-error-method.rs:19:11
14   |
15LL |     fn or<'b,G:GetRef<'b>>(&self, g2: G) -> &'a isize {
16   |           ^^
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0312`.