rust/tests/ui/fn/issue-3099.rs
2023-05-08 17:58:01 -03:00

12 lines
255 B
Rust

fn a(x: String) -> String {
format!("First function with {}", x)
}
fn a(x: String, y: String) -> String { //~ ERROR the name `a` is defined multiple times
format!("Second function with {} and {}", x, y)
}
fn main() {
println!("Result: ");
}