]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-static-bound.migrate.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / regions / regions-static-bound.migrate.stderr
CommitLineData
b7449926 1error[E0312]: lifetime of reference outlives lifetime of borrowed content...
0731742a 2 --> $DIR/regions-static-bound.rs:9:5
b7449926 3 |
532ac7d7 4LL | t
b7449926
XL
5 | ^
6 |
7 = note: ...the reference is valid for the static lifetime...
e74abb32 8note: ...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 |
11LL | fn static_id_wrong_way<'a>(t: &'a ()) -> &'static () where 'static: 'a {
12 | ^^
13
14error[E0621]: explicit lifetime required in the type of `u`
0731742a 15 --> $DIR/regions-static-bound.rs:14:5
b7449926 16 |
532ac7d7 17LL | static_id(&u);
b7449926
XL
18 | ^^^^^^^^^ lifetime `'static` required
19
20error[E0621]: explicit lifetime required in the type of `v`
0731742a 21 --> $DIR/regions-static-bound.rs:16:5
b7449926 22 |
532ac7d7 23LL | static_id_indirect(&v);
b7449926
XL
24 | ^^^^^^^^^^^^^^^^^^ lifetime `'static` required
25
26error: aborting due to 3 previous errors
27
e1599b0c
XL
28Some errors have detailed explanations: E0312, E0621.
29For more information about an error, try `rustc --explain E0312`.