summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-61106.rs
blob: 308ef1de3ccc37dd4cb1b3171d5aefd38c99018d (plain)
1
2
3
4
5
6
fn main() {
    let x = String::new();
    foo(x.clone()); //~ ERROR mismatched types
}

fn foo(_: &str) {}