|
| 1 | +error: unsatisfied lifetime constraints |
| 2 | + --> $DIR/regions-bounded-by-trait-requiring-static.rs:32:5 |
| 3 | + | |
| 4 | +LL | fn param_not_ok<'a>(x: &'a isize) { |
| 5 | + | -- lifetime `'a` defined here |
| 6 | +LL | assert_send::<&'a isize>(); //~ ERROR does not fulfill the required lifetime |
| 7 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` |
| 8 | + |
| 9 | +error: unsatisfied lifetime constraints |
| 10 | + --> $DIR/regions-bounded-by-trait-requiring-static.rs:36:5 |
| 11 | + | |
| 12 | +LL | fn param_not_ok1<'a>(_: &'a isize) { |
| 13 | + | -- lifetime `'a` defined here |
| 14 | +LL | assert_send::<&'a str>(); //~ ERROR does not fulfill the required lifetime |
| 15 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` |
| 16 | + |
| 17 | +error: unsatisfied lifetime constraints |
| 18 | + --> $DIR/regions-bounded-by-trait-requiring-static.rs:40:5 |
| 19 | + | |
| 20 | +LL | fn param_not_ok2<'a>(_: &'a isize) { |
| 21 | + | -- lifetime `'a` defined here |
| 22 | +LL | assert_send::<&'a [isize]>(); //~ ERROR does not fulfill the required lifetime |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` |
| 24 | + |
| 25 | +error: unsatisfied lifetime constraints |
| 26 | + --> $DIR/regions-bounded-by-trait-requiring-static.rs:54:5 |
| 27 | + | |
| 28 | +LL | fn box_with_region_not_ok<'a>() { |
| 29 | + | -- lifetime `'a` defined here |
| 30 | +LL | assert_send::<Box<&'a isize>>(); //~ ERROR does not fulfill the required lifetime |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` |
| 32 | + |
| 33 | +error: unsatisfied lifetime constraints |
| 34 | + --> $DIR/regions-bounded-by-trait-requiring-static.rs:65:5 |
| 35 | + | |
| 36 | +LL | fn unsafe_ok2<'a>(_: &'a isize) { |
| 37 | + | -- lifetime `'a` defined here |
| 38 | +LL | assert_send::<*const &'a isize>(); //~ ERROR does not fulfill the required lifetime |
| 39 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` |
| 40 | + |
| 41 | +error: unsatisfied lifetime constraints |
| 42 | + --> $DIR/regions-bounded-by-trait-requiring-static.rs:69:5 |
| 43 | + | |
| 44 | +LL | fn unsafe_ok3<'a>(_: &'a isize) { |
| 45 | + | -- lifetime `'a` defined here |
| 46 | +LL | assert_send::<*mut &'a isize>(); //~ ERROR does not fulfill the required lifetime |
| 47 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static` |
| 48 | + |
| 49 | +error: aborting due to 6 previous errors |
| 50 | + |
0 commit comments