2012-08-15 20:46:55 -05:00
|
|
|
struct noncopyable {
|
2012-08-02 18:00:45 -05:00
|
|
|
i: (); new() { self.i = (); } drop { #error["dropped"]; }
|
|
|
|
}
|
|
|
|
enum wrapper = noncopyable;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x1 = wrapper(noncopyable());
|
|
|
|
let _x2 = move *x1; //~ ERROR moving out of enum content
|
|
|
|
}
|