W3cubDocs

/Rust

Error code E0415

More than one function parameter have the same name.

Erroneous code example:

#![allow(unused)]
fn main() {
fn foo(f: i32, f: i32) {} // error: identifier `f` is bound more than
                          //        once in this parameter list
}

Please verify you didn't misspell parameters' name. Example:

#![allow(unused)]
fn main() {
fn foo(f: i32, g: i32) {} // ok!
}

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0415.html