]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
1 | fn a(x: String) -> String { |
2 | format!("First function with {}", x) | |
223e47cc LB |
3 | } |
4 | ||
041b39d2 | 5 | fn a(x: String, y: String) -> String { //~ ERROR the name `a` is defined multiple times |
1a4d82fc | 6 | format!("Second function with {} and {}", x, y) |
223e47cc LB |
7 | } |
8 | ||
9 | fn main() { | |
1a4d82fc | 10 | println!("Result: "); |
223e47cc | 11 | } |