rust/tests/ui/issues/issue-2823.rs
2023-01-11 09:32:08 +00:00

14 lines
222 B
Rust

struct C {
x: isize,
}
impl Drop for C {
fn drop(&mut self) {
println!("dropping: {}", self.x);
}
}
fn main() {
let c = C{ x: 2};
let _d = c.clone(); //~ ERROR no method named `clone` found
}