rust/src/test/compile-fail/issue-3099.rs
2012-08-06 16:37:18 -07:00

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: ");
}