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-16 00:12:42 +00:00
struct C {
x: isize,
}
impl Drop for C {
2013-09-17 01:18:07 +00:00
fn drop(&mut self) {
2014-10-15 01:07:11 +00:00
println!("dropping: {}", self.x);
2012-10-16 00:12:42 +00:00
}
}
fn main() {
let c = C{ x: 2};
let _d = c.clone(); //~ ERROR no method named `clone` found
}