rust/tests/ui/issues/issue-61106.rs

7 lines
108 B
Rust
Raw Normal View History

fn main() {
let x = String::new();
foo(x.clone()); //~ ERROR mismatched types
}
fn foo(_: &str) {}