2012-08-06 16:10:56 -07:00
|
|
|
fn a(x: ~str) -> ~str {
|
2012-10-12 12:32:36 -07:00
|
|
|
fmt!("First function with %s", x)
|
2012-08-06 16:10:56 -07:00
|
|
|
}
|
|
|
|
|
2012-10-18 12:08:52 -07:00
|
|
|
fn a(x: ~str, y: ~str) -> ~str { //~ ERROR duplicate definition of value a
|
2012-10-12 12:32:36 -07:00
|
|
|
fmt!("Second function with %s and %s", x, y)
|
2012-08-06 16:10:56 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2012-10-12 12:32:36 -07:00
|
|
|
info!("Result: ");
|
2012-08-06 16:10:56 -07:00
|
|
|
}
|