1bede1f5e0
This commit replaces nearly all remaining uses of #fmt, #debug, #error, and #info, and fixes some error messages...
17 lines
279 B
Rust
17 lines
279 B
Rust
struct noncopyable {
|
|
i: (), drop { error!("dropped"); }
|
|
}
|
|
|
|
fn noncopyable() -> noncopyable {
|
|
noncopyable {
|
|
i: ()
|
|
}
|
|
}
|
|
|
|
enum wrapper = noncopyable;
|
|
|
|
fn main() {
|
|
let x1 = wrapper(noncopyable());
|
|
let _x2 = move *x1; //~ ERROR moving out of enum content
|
|
}
|