]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-early-bound-error.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / regions / regions-early-bound-error.stderr
1 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
2   --> $DIR/regions-early-bound-error.rs:29:5
3    |
4 LL |     g1.get()
5    |     ^^^^^^^^
6    |
7 note: ...the reference is valid for the lifetime 'b as defined on the function body at 28:11...
8   --> $DIR/regions-early-bound-error.rs:28:11
9    |
10 LL | fn get<'a,'b,G:GetRef<'a, isize>>(g1: G, b: &'b isize) -> &'b isize {
11    |           ^^
12 note: ...but the borrowed content is only valid for the lifetime 'a as defined on the function body at 28:8
13   --> $DIR/regions-early-bound-error.rs:28:8
14    |
15 LL | fn get<'a,'b,G:GetRef<'a, isize>>(g1: G, b: &'b isize) -> &'b isize {
16    |        ^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0312`.