fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2fn e0658<F, G, H>(f: F, g: G, h: H) -> i32 3where 4 F: Fn(i32) -> i32, //~ ERROR E0658 5 G: Fn(i32, i32) -> (i32, i32), //~ ERROR E0658 6 H: Fn(i32) -> i32, //~ ERROR E0658 7{ 8 f(3); 9 g(3, 4); 10 h(3) 11} 12 13fn main() { 14 e0658( 15 |a| a, 16 |a, b| (b, a), 17 |a| a, 18 ); 19}