]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0312]: lifetime of reference outlives lifetime of borrowed content... |
0731742a | 2 | --> $DIR/regions-static-bound.rs:9:5 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | t |
b7449926 XL |
5 | | ^ |
6 | | | |
7 | = note: ...the reference is valid for the static lifetime... | |
e74abb32 | 8 | note: ...but the borrowed content is only valid for the lifetime `'a` as defined on the function body at 8:24 |
0731742a | 9 | --> $DIR/regions-static-bound.rs:8:24 |
b7449926 XL |
10 | | |
11 | LL | fn static_id_wrong_way<'a>(t: &'a ()) -> &'static () where 'static: 'a { | |
12 | | ^^ | |
13 | ||
14 | error[E0621]: explicit lifetime required in the type of `u` | |
0731742a | 15 | --> $DIR/regions-static-bound.rs:14:5 |
b7449926 | 16 | | |
532ac7d7 | 17 | LL | static_id(&u); |
b7449926 XL |
18 | | ^^^^^^^^^ lifetime `'static` required |
19 | ||
20 | error[E0621]: explicit lifetime required in the type of `v` | |
0731742a | 21 | --> $DIR/regions-static-bound.rs:16:5 |
b7449926 | 22 | | |
532ac7d7 | 23 | LL | static_id_indirect(&v); |
b7449926 XL |
24 | | ^^^^^^^^^^^^^^^^^^ lifetime `'static` required |
25 | ||
26 | error: aborting due to 3 previous errors | |
27 | ||
e1599b0c XL |
28 | Some errors have detailed explanations: E0312, E0621. |
29 | For more information about an error, try `rustc --explain E0312`. |