2012-05-19 05:52:01 -07:00
|
|
|
fn main() {
|
2021-08-25 02:39:40 +02:00
|
|
|
|
|
|
|
|
let x: Box<_> = 5.into();
|
2013-01-10 10:59:58 -08:00
|
|
|
let y = x;
|
2021-08-25 02:39:40 +02:00
|
|
|
|
2019-04-22 08:40:08 +01:00
|
|
|
println!("{}", *x); //~ ERROR borrow of moved value: `x`
|
2013-07-02 12:47:32 -07:00
|
|
|
y.clone();
|
2012-05-19 05:52:01 -07:00
|
|
|
}
|