error: unsatisfied lifetime constraints --> $DIR/regions-static-bound.rs:19:5 | LL | fn static_id_wrong_way<'a>(t: &'a ()) -> &'static () where 'static: 'a { | -- lifetime `'a` defined here LL | t //[ll]~ ERROR E0312 | ^ returning this value requires that `'a` must outlive `'static` error[E0621]: explicit lifetime required in the type of `u` --> $DIR/regions-static-bound.rs:24:5 | LL | fn error(u: &(), v: &()) { | --- help: add explicit lifetime `'static` to the type of `u`: `&'static ()` LL | static_id(&u); //[ll]~ ERROR explicit lifetime required in the type of `u` [E0621] | ^^^^^^^^^^^^^ lifetime `'static` required error[E0621]: explicit lifetime required in the type of `v` --> $DIR/regions-static-bound.rs:27:5 | LL | fn error(u: &(), v: &()) { | --- help: add explicit lifetime `'static` to the type of `v`: `&'static ()` ... LL | static_id_indirect(&v); //[ll]~ ERROR explicit lifetime required in the type of `v` [E0621] | ^^^^^^^^^^^^^^^^^^^^^^ lifetime `'static` required error: unsatisfied lifetime constraints --> $DIR/regions-static-bound.rs:24:5 | LL | fn error(u: &(), v: &()) { | - - let's call the lifetime of this reference `'2` | | | let's call the lifetime of this reference `'1` LL | static_id(&u); //[ll]~ ERROR explicit lifetime required in the type of `u` [E0621] | ^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2` error: unsatisfied lifetime constraints --> $DIR/regions-static-bound.rs:27:5 | LL | fn error(u: &(), v: &()) { | - - let's call the lifetime of this reference `'1` | | | let's call the lifetime of this reference `'2` ... LL | static_id_indirect(&v); //[ll]~ ERROR explicit lifetime required in the type of `v` [E0621] | ^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2` error: aborting due to 5 previous errors For more information about this error, try `rustc --explain E0621`.