1 error: lifetime may not live long enough
2 --> $DIR/regions-bounded-by-trait-requiring-static.rs:22:5
4 LL | fn param_not_ok<'a>(x: &'a isize) {
5 | -- lifetime `'a` defined here
6 LL | assert_send::<&'a isize>();
7 | ^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
9 error: lifetime may not live long enough
10 --> $DIR/regions-bounded-by-trait-requiring-static.rs:27:5
12 LL | fn param_not_ok1<'a>(_: &'a isize) {
13 | -- lifetime `'a` defined here
14 LL | assert_send::<&'a str>();
15 | ^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
17 error: lifetime may not live long enough
18 --> $DIR/regions-bounded-by-trait-requiring-static.rs:32:5
20 LL | fn param_not_ok2<'a>(_: &'a isize) {
21 | -- lifetime `'a` defined here
22 LL | assert_send::<&'a [isize]>();
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
25 error: lifetime may not live long enough
26 --> $DIR/regions-bounded-by-trait-requiring-static.rs:47:5
28 LL | fn box_with_region_not_ok<'a>() {
29 | -- lifetime `'a` defined here
30 LL | assert_send::<Box<&'a isize>>();
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
33 error: lifetime may not live long enough
34 --> $DIR/regions-bounded-by-trait-requiring-static.rs:59:5
36 LL | fn unsafe_ok2<'a>(_: &'a isize) {
37 | -- lifetime `'a` defined here
38 LL | assert_send::<*const &'a isize>();
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
41 error: lifetime may not live long enough
42 --> $DIR/regions-bounded-by-trait-requiring-static.rs:64:5
44 LL | fn unsafe_ok3<'a>(_: &'a isize) {
45 | -- lifetime `'a` defined here
46 LL | assert_send::<*mut &'a isize>();
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
49 error: aborting due to 6 previous errors