fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0700]: hidden type for `impl IntoIterator<Item = impl Cap<'a> + Cap<'b>>` captures lifetime that does not appear in bounds 2 --> $DIR/nested-impl-trait-fail.rs:17:5 3 | 4LL | fn fail_early_bound<'s, 'a, 'b>(a: &'s u8) -> impl IntoIterator<Item = impl Cap<'a> + Cap<'b>> 5 | -- ------------------------------------------------ opaque type defined here 6 | | 7 | hidden type `[&'s u8; 1]` captures the lifetime `'s` as defined here 8... 9LL | [a] 10 | ^^^ 11 | 12help: to declare that `impl IntoIterator<Item = impl Cap<'a> + Cap<'b>>` captures `'s`, you can add an explicit `'s` lifetime bound 13 | 14LL | fn fail_early_bound<'s, 'a, 'b>(a: &'s u8) -> impl IntoIterator<Item = impl Cap<'a> + Cap<'b>> + 's 15 | ++++ 16help: to declare that `impl Cap<'a> + Cap<'b>` captures `'s`, you can add an explicit `'s` lifetime bound 17 | 18LL | fn fail_early_bound<'s, 'a, 'b>(a: &'s u8) -> impl IntoIterator<Item = impl Cap<'a> + Cap<'b> + 's> 19 | ++++ 20 21error[E0700]: hidden type for `impl Cap<'a> + Cap<'b>` captures lifetime that does not appear in bounds 22 --> $DIR/nested-impl-trait-fail.rs:17:5 23 | 24LL | fn fail_early_bound<'s, 'a, 'b>(a: &'s u8) -> impl IntoIterator<Item = impl Cap<'a> + Cap<'b>> 25 | -- ---------------------- opaque type defined here 26 | | 27 | hidden type `&'s u8` captures the lifetime `'s` as defined here 28... 29LL | [a] 30 | ^^^ 31 | 32help: to declare that `impl IntoIterator<Item = impl Cap<'a> + Cap<'b>>` captures `'s`, you can add an explicit `'s` lifetime bound 33 | 34LL | fn fail_early_bound<'s, 'a, 'b>(a: &'s u8) -> impl IntoIterator<Item = impl Cap<'a> + Cap<'b>> + 's 35 | ++++ 36help: to declare that `impl Cap<'a> + Cap<'b>` captures `'s`, you can add an explicit `'s` lifetime bound 37 | 38LL | fn fail_early_bound<'s, 'a, 'b>(a: &'s u8) -> impl IntoIterator<Item = impl Cap<'a> + Cap<'b> + 's> 39 | ++++ 40 41error[E0700]: hidden type for `impl IntoIterator<Item = impl Cap<'a> + Cap<'b>>` captures lifetime that does not appear in bounds 42 --> $DIR/nested-impl-trait-fail.rs:28:5 43 | 44LL | fn fail_late_bound<'s, 'a, 'b>( 45 | -- hidden type `[&'s u8; 1]` captures the lifetime `'s` as defined here 46... 47LL | ) -> impl IntoIterator<Item = impl Cap<'a> + Cap<'b>> { 48 | ------------------------------------------------ opaque type defined here 49LL | [a] 50 | ^^^ 51 | 52help: to declare that `impl IntoIterator<Item = impl Cap<'a> + Cap<'b>>` captures `'s`, you can add an explicit `'s` lifetime bound 53 | 54LL | ) -> impl IntoIterator<Item = impl Cap<'a> + Cap<'b>> + 's { 55 | ++++ 56help: to declare that `impl Cap<'a> + Cap<'b>` captures `'s`, you can add an explicit `'s` lifetime bound 57 | 58LL | ) -> impl IntoIterator<Item = impl Cap<'a> + Cap<'b> + 's> { 59 | ++++ 60 61error[E0700]: hidden type for `impl Cap<'a> + Cap<'b>` captures lifetime that does not appear in bounds 62 --> $DIR/nested-impl-trait-fail.rs:28:5 63 | 64LL | fn fail_late_bound<'s, 'a, 'b>( 65 | -- hidden type `&'s u8` captures the lifetime `'s` as defined here 66... 67LL | ) -> impl IntoIterator<Item = impl Cap<'a> + Cap<'b>> { 68 | ---------------------- opaque type defined here 69LL | [a] 70 | ^^^ 71 | 72help: to declare that `impl IntoIterator<Item = impl Cap<'a> + Cap<'b>>` captures `'s`, you can add an explicit `'s` lifetime bound 73 | 74LL | ) -> impl IntoIterator<Item = impl Cap<'a> + Cap<'b>> + 's { 75 | ++++ 76help: to declare that `impl Cap<'a> + Cap<'b>` captures `'s`, you can add an explicit `'s` lifetime bound 77 | 78LL | ) -> impl IntoIterator<Item = impl Cap<'a> + Cap<'b> + 's> { 79 | ++++ 80 81error: aborting due to 4 previous errors 82 83For more information about this error, try `rustc --explain E0700`.