]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3099.rs
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
[rust.git] / src / test / 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 }