2019-01-27 05:03:21 -06:00
|
|
|
error: lifetime may not live long enough
|
2022-04-19 05:56:18 -05:00
|
|
|
--> $DIR/regions-bounded-by-trait-requiring-static.rs:26:5
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
|
LL | fn param_not_ok<'a>(x: &'a isize) {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | assert_send::<&'a isize>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
|
|
|
|
|
|
|
error: lifetime may not live long enough
|
2022-04-19 05:56:18 -05:00
|
|
|
--> $DIR/regions-bounded-by-trait-requiring-static.rs:32:5
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
|
LL | fn param_not_ok1<'a>(_: &'a isize) {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | assert_send::<&'a str>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
|
|
|
|
|
|
|
error: lifetime may not live long enough
|
2022-04-19 05:56:18 -05:00
|
|
|
--> $DIR/regions-bounded-by-trait-requiring-static.rs:38:5
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
|
LL | fn param_not_ok2<'a>(_: &'a isize) {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | assert_send::<&'a [isize]>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
|
|
|
|
|
|
|
error: lifetime may not live long enough
|
2022-04-19 05:56:18 -05:00
|
|
|
--> $DIR/regions-bounded-by-trait-requiring-static.rs:54:5
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
|
LL | fn box_with_region_not_ok<'a>() {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | assert_send::<Box<&'a isize>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
|
|
|
|
|
|
|
error: lifetime may not live long enough
|
2022-04-19 05:56:18 -05:00
|
|
|
--> $DIR/regions-bounded-by-trait-requiring-static.rs:67:5
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
|
LL | fn unsafe_ok2<'a>(_: &'a isize) {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | assert_send::<*const &'a isize>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
|
|
|
|
|
|
|
error: lifetime may not live long enough
|
2022-04-19 05:56:18 -05:00
|
|
|
--> $DIR/regions-bounded-by-trait-requiring-static.rs:73:5
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
|
LL | fn unsafe_ok3<'a>(_: &'a isize) {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
LL | assert_send::<*mut &'a isize>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|