rust/tests/ui/impl-trait/capture-lifetime-not-in-hir.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
426 B
Plaintext
Raw Permalink Normal View History

error: ['a: o, T: o]
2023-09-07 22:00:59 -05:00
--> $DIR/capture-lifetime-not-in-hir.rs:8:29
|
LL | fn foo<'a, T: Bar<'a>>() -> impl Into<T::Assoc> {
| ^^^^^^^^^^^^^^^^^^^
error: ['a: o, T: o, 'a: o]
2023-09-07 22:00:59 -05:00
--> $DIR/capture-lifetime-not-in-hir.rs:14:30
|
LL | fn foo2<'a, T: Bar<'a>>() -> impl Into<T::Assoc> + 'a {
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors