]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/fn-trait-notation.fixed
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / fn-trait-notation.fixed
1 // run-rustfix
2 fn e0658<F, G, H>(f: F, g: G, h: H) -> i32
3 where
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
13 fn main() {
14     e0658(
15         |a| a,
16         |a, b| (b, a),
17         |a| a,
18     );
19 }