summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/issue-62200.rs
blob: 9d18690e96049a189cf6190449d3d1060b762e8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct S {}

trait T<'a> {
    type A;
}

impl T<'_> for S {
    type A = u32;
}

fn foo(x: impl Fn(<S as T<'_>>::A) -> <S as T<'_>>::A) {}
//~^ ERROR binding for associated type `Output` references an anonymous lifetime
//~^^ NOTE lifetimes appearing in an associated type are not considered constrained

fn main() {}