summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/issue-62200.stderr
blob: 04f0728f58ea86bb68a6d0df3130080757797c79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0582]: binding for associated type `Output` references an anonymous lifetime, which does not appear in the trait input types
  --> $DIR/issue-62200.rs:11:39
   |
LL | fn foo(x: impl Fn(<S as T<'_>>::A) -> <S as T<'_>>::A) {}
   |                                       ^^^^^^^^^^^^^^^
   |
   = note: lifetimes appearing in an associated or opaque type are not considered constrained
   = note: consider introducing a named lifetime parameter

error: aborting due to previous error

For more information about this error, try `rustc --explain E0582`.