2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2021-07-14 15:34:28 +02:00
|
|
|
#![allow(dead_code)]
|
2015-01-08 02:25:56 +01:00
|
|
|
|
2014-01-03 15:30:54 -08:00
|
|
|
pub fn main() {
|
2022-07-07 04:36:10 +02:00
|
|
|
let mut x: Box<_> = Box::new(3);
|
2013-05-21 13:12:31 -07:00
|
|
|
x = x;
|
|
|
|
assert_eq!(*x, 3);
|
|
|
|
}
|