]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-trait-variance.stderr
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / ui / regions / regions-trait-variance.stderr
CommitLineData
8faf50e0 1error[E0597]: `*b` does not live long enough
0731742a 2 --> $DIR/regions-trait-variance.rs:37:19
8faf50e0 3 |
b7449926 4LL | let bb: &B = &*b; //~ ERROR `*b` does not live long enough
8faf50e0
XL
5 | ^^ borrowed value does not live long enough
6LL | make_a(bb)
7LL | }
8 | - borrowed value only lives until here
9 |
0731742a
XL
10note: borrowed value must be valid for the lifetime 'a as defined on the function body at 33:16...
11 --> $DIR/regions-trait-variance.rs:33:16
8faf50e0
XL
12 |
13LL | fn make_make_a<'a>() -> A<'a> {
14 | ^^
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0597`.