]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | error: lifetime may not live long enough |
0731742a | 2 | --> $DIR/regions-static-bound.rs:9:5 |
b7449926 | 3 | | |
b7449926 | 4 | LL | fn static_id_wrong_way<'a>(t: &'a ()) -> &'static () where 'static: 'a { |
48663c56 XL |
5 | | -- lifetime `'a` defined here |
6 | LL | t | |
7 | | ^ returning this value requires that `'a` must outlive `'static` | |
60c5eb7d XL |
8 | | |
9 | = help: consider replacing `'a` with `'static` | |
b7449926 XL |
10 | |
11 | error[E0621]: explicit lifetime required in the type of `u` | |
0731742a | 12 | --> $DIR/regions-static-bound.rs:14:5 |
b7449926 | 13 | | |
532ac7d7 | 14 | LL | static_id(&u); |
48663c56 | 15 | | ^^^^^^^^^^^^^ lifetime `'static` required |
b7449926 XL |
16 | |
17 | error[E0621]: explicit lifetime required in the type of `v` | |
0731742a | 18 | --> $DIR/regions-static-bound.rs:16:5 |
b7449926 | 19 | | |
532ac7d7 | 20 | LL | static_id_indirect(&v); |
48663c56 | 21 | | ^^^^^^^^^^^^^^^^^^^^^^ lifetime `'static` required |
b7449926 XL |
22 | |
23 | error: aborting due to 3 previous errors | |
24 | ||
48663c56 | 25 | For more information about this error, try `rustc --explain E0621`. |