]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-43431.rs
Merge commit '645ef505da378b6f810b1567806d1bcc2856395f' into clippyup
[rust.git] / src / test / ui / issues / issue-43431.rs
1 #![feature(fn_traits)]
2
3 trait CallSingle<A, B> {
4     fn call(&self, a: A) -> B where Self: Sized, Self: Fn(A) -> B;
5 }
6
7 impl<A, B, F: Fn(A) -> B> CallSingle<A, B> for F {
8     fn call(&self, a: A) -> B {
9         <Self as Fn(A) -> B>::call(self, (a,))
10         //~^ ERROR associated type bindings are not allowed here
11     }
12 }
13
14 fn main() {}