rust/src/test/compile-fail/issue-3099.rs

12 lines
229 B
Rust
Raw Normal View History

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