]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-3099.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-3099.rs
CommitLineData
1a4d82fc
JJ
1fn a(x: String) -> String {
2 format!("First function with {}", x)
223e47cc
LB
3}
4
041b39d2 5fn a(x: String, y: String) -> String { //~ ERROR the name `a` is defined multiple times
1a4d82fc 6 format!("Second function with {} and {}", x, y)
223e47cc
LB
7}
8
9fn main() {
1a4d82fc 10 println!("Result: ");
223e47cc 11}