blob: ee75b359388f3f9316b66f92e824120bbe53d7df (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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: ");
}
|