]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0597]: `*b` does not live long enough |
0731742a | 2 | --> $DIR/regions-trait-variance.rs:37:19 |
8faf50e0 | 3 | | |
b7449926 | 4 | LL | let bb: &B = &*b; //~ ERROR `*b` does not live long enough |
8faf50e0 XL |
5 | | ^^ borrowed value does not live long enough |
6 | LL | make_a(bb) | |
7 | LL | } | |
8 | | - borrowed value only lives until here | |
9 | | | |
0731742a XL |
10 | note: 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 | | |
13 | LL | fn make_make_a<'a>() -> A<'a> { | |
14 | | ^^ | |
15 | ||
16 | error: aborting due to previous error | |
17 | ||
18 | For more information about this error, try `rustc --explain E0597`. |