|
| 1 | +error: missing lifetimes bound declaration: 'lftb: 'lfta |
| 2 | + --> tests/ui/lifetimes_bound_nested_ref_expl.rs:5:37 |
| 3 | + | |
| 4 | +LL | pub fn lifetime_translator_1<'lfta, 'lftb, T>(val_a: &'lfta &'lftb T, _val_b: &'lftb T) -> &'lfta T { |
| 5 | + | ^^^^^ help: try: `'lftb: 'lfta` |
| 6 | + | |
| 7 | +note: this lifetimes bound is implied here: |
| 8 | + --> tests/ui/lifetimes_bound_nested_ref_expl.rs:5:55 |
| 9 | + | |
| 10 | +LL | pub fn lifetime_translator_1<'lfta, 'lftb, T>(val_a: &'lfta &'lftb T, _val_b: &'lftb T) -> &'lfta T { |
| 11 | + | ^^^^^^^^^^^^ |
| 12 | + = note: `-D clippy::explicit-lifetimes-bound` implied by `-D warnings` |
| 13 | + = help: to override `-D warnings` add `#[allow(clippy::explicit_lifetimes_bound)]` |
| 14 | + |
| 15 | +error: missing lifetimes bound declaration: 'a: 'b |
| 16 | + --> tests/ui/lifetimes_bound_nested_ref_expl.rs:25:6 |
| 17 | + | |
| 18 | +LL | impl<'a, 'b> Subtrait<'a, 'b, &'b &'a ()> for MyStruct {} |
| 19 | + | ^^ help: try: `'a: 'b` |
| 20 | + | |
| 21 | +note: this lifetimes bound is implied here: |
| 22 | + --> tests/ui/lifetimes_bound_nested_ref_expl.rs:25:32 |
| 23 | + | |
| 24 | +LL | impl<'a, 'b> Subtrait<'a, 'b, &'b &'a ()> for MyStruct {} |
| 25 | + | ^^^^^^ |
| 26 | + |
| 27 | +error: missing lifetimes bound declaration: 'a: 'b |
| 28 | + --> tests/ui/lifetimes_bound_nested_ref_expl.rs:41:6 |
| 29 | + | |
| 30 | +LL | impl<'a, 'b> Extend1<'a, 'b> for <&'b &'a () as Trait1>::Type1 { |
| 31 | + | ^^ help: try: `'a: 'b` |
| 32 | + | |
| 33 | +note: this lifetimes bound is implied here: |
| 34 | + --> tests/ui/lifetimes_bound_nested_ref_expl.rs:41:36 |
| 35 | + | |
| 36 | +LL | impl<'a, 'b> Extend1<'a, 'b> for <&'b &'a () as Trait1>::Type1 { |
| 37 | + | ^^^^^^ |
| 38 | + |
| 39 | +error: missing lifetimes bound declaration: 'b: 'a |
| 40 | + --> tests/ui/lifetimes_bound_nested_ref_expl.rs:49:32 |
| 41 | + | |
| 42 | +LL | unsafe fn deinit_slice_mut<'a, 'b, T>(s: &'a mut &'b mut [T]) -> &'a mut &'b mut [MaybeUninit<T>] { |
| 43 | + | ^^ help: try: `'b: 'a` |
| 44 | + | |
| 45 | +note: this lifetimes bound is implied here: |
| 46 | + --> tests/ui/lifetimes_bound_nested_ref_expl.rs:49:43 |
| 47 | + | |
| 48 | +LL | unsafe fn deinit_slice_mut<'a, 'b, T>(s: &'a mut &'b mut [T]) -> &'a mut &'b mut [MaybeUninit<T>] { |
| 49 | + | ^^^^^^^^^^ |
| 50 | + |
| 51 | +error: missing lifetimes bound declaration: 'a: 'b |
| 52 | + --> tests/ui/lifetimes_bound_nested_ref_expl.rs:64:21 |
| 53 | + | |
| 54 | +LL | fn test_unnamed_ref<'a, 'b>(w1: &'b mut &mut Thing1<'a>, w2: &mut Thing2<'b>) -> &'a u8 { |
| 55 | + | ^^ help: try: `'a: 'b` |
| 56 | + | |
| 57 | +note: this lifetimes bound is implied here: |
| 58 | + --> tests/ui/lifetimes_bound_nested_ref_expl.rs:64:34 |
| 59 | + | |
| 60 | +LL | fn test_unnamed_ref<'a, 'b>(w1: &'b mut &mut Thing1<'a>, w2: &mut Thing2<'b>) -> &'a u8 { |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 62 | + |
| 63 | +error: aborting due to 5 previous errors |
| 64 | + |
0 commit comments