]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-43431.rs
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[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() {}