mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
12 lines
255 B
Rust
12 lines
255 B
Rust
fn a(x: String) -> String {
|
|
format!("First function with {}", x)
|
|
}
|
|
|
|
fn a(x: String, y: String) -> String { //~ ERROR the name `a` is defined multiple times
|
|
format!("Second function with {} and {}", x, y)
|
|
}
|
|
|
|
fn main() {
|
|
println!("Result: ");
|
|
}
|