]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-early-bound-error.stderr
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / ui / regions / regions-early-bound-error.stderr
CommitLineData
b7449926 1error[E0312]: lifetime of reference outlives lifetime of borrowed content...
0731742a 2 --> $DIR/regions-early-bound-error.rs:19:5
b7449926
XL
3 |
4LL | g1.get()
5 | ^^^^^^^^
6 |
0731742a
XL
7note: ...the reference is valid for the lifetime 'b as defined on the function body at 18:11...
8 --> $DIR/regions-early-bound-error.rs:18:11
b7449926
XL
9 |
10LL | fn get<'a,'b,G:GetRef<'a, isize>>(g1: G, b: &'b isize) -> &'b isize {
11 | ^^
0731742a
XL
12note: ...but the borrowed content is only valid for the lifetime 'a as defined on the function body at 18:8
13 --> $DIR/regions-early-bound-error.rs:18:8
b7449926
XL
14 |
15LL | fn get<'a,'b,G:GetRef<'a, isize>>(g1: G, b: &'b isize) -> &'b isize {
16 | ^^
17
18error: aborting due to previous error
19
e1599b0c 20For more information about this error, try `rustc --explain E0312`.