2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2016-08-13 02:41:43 -07:00
|
|
|
#![allow(unused_variables)]
|
2013-08-17 08:37:42 -07:00
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2021-08-25 02:39:40 +02:00
|
|
|
let i: Box<_> = Box::new(100);
|
|
|
|
let j: Box<_> = Box::new(200);
|
2013-02-15 02:44:18 -08:00
|
|
|
let j = i;
|
2013-05-18 22:02:45 -04:00
|
|
|
assert_eq!(*j, 100);
|
2013-02-14 11:47:00 -08:00
|
|
|
}
|