]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-3099.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / issues / issue-3099.rs
1 fn a(x: String) -> String {
2     format!("First function with {}", x)
3 }
4
5 fn a(x: String, y: String) -> String { //~ ERROR the name `a` is defined multiple times
6     format!("Second function with {} and {}", x, y)
7 }
8
9 fn main() {
10     println!("Result: ");
11 }