1 warning: not reporting region error due to nll
2 --> $DIR/regions-static-bound.rs:19:5
4 LL | t //[ll]~ ERROR E0312
7 warning: not reporting region error due to nll
8 --> $DIR/regions-static-bound.rs:25:5
10 LL | static_id(&u); //[ll]~ ERROR explicit lifetime required in the type of `u` [E0621]
13 warning: not reporting region error due to nll
14 --> $DIR/regions-static-bound.rs:28:5
16 LL | static_id_indirect(&v); //[ll]~ ERROR explicit lifetime required in the type of `v` [E0621]
19 error: unsatisfied lifetime constraints
20 --> $DIR/regions-static-bound.rs:19:5
22 LL | fn static_id_wrong_way<'a>(t: &'a ()) -> &'static () where 'static: 'a {
23 | -- lifetime `'a` defined here
24 LL | t //[ll]~ ERROR E0312
25 | ^ return requires that `'a` must outlive `'static`
27 error[E0621]: explicit lifetime required in the type of `u`
28 --> $DIR/regions-static-bound.rs:25:5
30 LL | fn error(u: &(), v: &()) {
31 | --- help: add explicit lifetime `'static` to the type of `u`: `&'static ()`
32 LL | static_id(&u); //[ll]~ ERROR explicit lifetime required in the type of `u` [E0621]
33 | ^^^^^^^^^^^^^ lifetime `'static` required
35 error[E0621]: explicit lifetime required in the type of `v`
36 --> $DIR/regions-static-bound.rs:28:5
38 LL | fn error(u: &(), v: &()) {
39 | --- help: add explicit lifetime `'static` to the type of `v`: `&'static ()`
41 LL | static_id_indirect(&v); //[ll]~ ERROR explicit lifetime required in the type of `v` [E0621]
42 | ^^^^^^^^^^^^^^^^^^^^^^ lifetime `'static` required
44 error: aborting due to 3 previous errors
46 For more information about this error, try `rustc --explain E0621`.