]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/fn-trait-notation.fixed
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / 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 }