Add test for Issue 2823

This commit is contained in:
Tim Chevalier 2012-10-15 17:12:42 -07:00
parent d29328617d
commit bbc46d527d

View File

@ -0,0 +1,12 @@
struct C {
x: int,
drop {
#error("dropping: %?", self.x);
}
}
fn main() {
let c = C{ x: 2};
let d = copy c; //~ ERROR copying a noncopyable value
#error("%?", d.x);
}