2024-04-18 01:30:41 +00:00
|
|
|
error: `impl Trait` captures lifetime parameter, but it is not mentioned in `use<...>` precise captures list
|
2024-07-12 10:12:24 +00:00
|
|
|
--> $DIR/capture-parent-arg.rs:25:31
|
2024-04-18 01:30:41 +00:00
|
|
|
|
|
|
|
|
LL | impl<'a> W<'a> {
|
|
|
|
| -- this lifetime parameter is captured
|
2024-06-05 20:18:52 +00: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-18 01:30:41 +00:00
|
|
|
|
|
|
|
error: `impl Trait` captures lifetime parameter, but it is not mentioned in `use<...>` precise captures list
|
2024-07-12 10:12:24 +00:00
|
|
|
--> $DIR/capture-parent-arg.rs:31:18
|
2024-04-18 01:30:41 +00:00
|
|
|
|
|
|
|
|
LL | impl<'a> W<'a> {
|
2024-04-19 19:18:00 +00:00
|
|
|
| -- this lifetime parameter is captured
|
2024-06-05 20:18:52 +00: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-18 01:30:41 +00:00
|
|
|
|
2024-06-17 02:07:23 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2024-04-18 01:30:41 +00:00
|
|
|
|