2024-04-17 20:30:41 -05:00
|
|
|
error: `impl Trait` captures lifetime parameter, but it is not mentioned in `use<...>` precise captures list
|
2024-07-12 05:12:24 -05:00
|
|
|
--> $DIR/capture-parent-arg.rs:25:31
|
2024-04-17 20:30:41 -05:00
|
|
|
|
|
|
|
|
LL | impl<'a> W<'a> {
|
|
|
|
| -- this lifetime parameter is captured
|
2024-06-05 15:18:52 -05:00
|
|
|
LL | fn bad1() -> impl Into<<W<'a> as Tr>::Assoc> + use<> {}
|
|
|
|
| -------------^^------------------------ lifetime captured due to being mentioned in the bounds of the `impl Trait`
|
2024-04-17 20:30:41 -05:00
|
|
|
|
|
|
|
error: `impl Trait` captures lifetime parameter, but it is not mentioned in `use<...>` precise captures list
|
2024-07-12 05:12:24 -05:00
|
|
|
--> $DIR/capture-parent-arg.rs:31:18
|
2024-04-17 20:30:41 -05:00
|
|
|
|
|
|
|
|
LL | impl<'a> W<'a> {
|
2024-04-19 14:18:00 -05:00
|
|
|
| -- this lifetime parameter is captured
|
2024-06-05 15:18:52 -05:00
|
|
|
LL | fn bad2() -> impl Into<<Self as Tr>::Assoc> + use<> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime captured due to being mentioned in the bounds of the `impl Trait`
|
2024-04-17 20:30:41 -05:00
|
|
|
|
2024-06-16 21:07:23 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2024-04-17 20:30:41 -05:00
|
|
|
|