]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-62200.stderr
Auto merge of #101329 - QuinnPainter:armv5te-targets, r=nagisa
[rust.git] / src / test / ui / associated-types / issue-62200.stderr
1 error[E0582]: binding for associated type `Output` references an anonymous lifetime, which does not appear in the trait input types
2   --> $DIR/issue-62200.rs:11:39
3    |
4 LL | fn foo(x: impl Fn(<S as T<'_>>::A) -> <S as T<'_>>::A) {}
5    |                                       ^^^^^^^^^^^^^^^
6    |
7    = note: lifetimes appearing in an associated or opaque type are not considered constrained
8    = note: consider introducing a named lifetime parameter
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0582`.