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