6bd01d0ac8
Closes #3099
12 lines
229 B
Rust
12 lines
229 B
Rust
fn a(x: ~str) -> ~str {
|
|
#fmt("First function with %s", x)
|
|
}
|
|
|
|
fn a(x: ~str, y: ~str) -> ~str { //~ ERROR Duplicate definition of value a
|
|
#fmt("Second function with %s and %s", x, y)
|
|
}
|
|
|
|
fn main() {
|
|
#info("Result: ");
|
|
}
|