summary refs log tree commit diff
path: root/src/test/compile-fail/issue-3099.rs
blob: 4f3bd89e7ef911bf153ca57c2fb28a13758c7f00 (plain)
1
2
3
4
5
6
7
8
9
10
11
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: ");
}