]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3099.rs
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[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 }