summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-43431.rs
blob: e7ec35105f75404ee82ce5baa0ebc2fc65708926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(fn_traits)]

trait CallSingle<A, B> {
    fn call(&self, a: A) -> B where Self: Sized, Self: Fn(A) -> B;
}

impl<A, B, F: Fn(A) -> B> CallSingle<A, B> for F {
    fn call(&self, a: A) -> B {
        <Self as Fn(A) -> B>::call(self, (a,))
        //~^ ERROR associated type bindings are not allowed here
    }
}

fn main() {}