]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0415.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0415.md
1 More than one function parameter have the same name.
2
3 Erroneous code example:
4
5 ```compile_fail,E0415
6 fn foo(f: i32, f: i32) {} // error: identifier `f` is bound more than
7                           //        once in this parameter list
8 ```
9
10 Please verify you didn't misspell parameters' name. Example:
11
12 ```
13 fn foo(f: i32, g: i32) {} // ok!
14 ```