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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
222 B
Rust
Raw Normal View History

2012-10-15 19:12:42 -05:00
struct C {
x: isize,
}
impl Drop for C {
2013-09-16 20:18:07 -05:00
fn drop(&mut self) {
2014-10-14 20:07:11 -05:00
println!("dropping: {}", self.x);
2012-10-15 19:12:42 -05:00
}
}
fn main() {
let c = C{ x: 2};
let _d = c.clone(); //~ ERROR no method named `clone` found
}