11 lines
182 B
Rust
11 lines
182 B
Rust
// run-pass
|
|
|
|
#![allow(unused_variables)]
|
|
#![feature(box_syntax)]
|
|
|
|
pub fn main() {
|
|
let i: Box<_> = box 100;
|
|
let j: Box<_> = box 200;
|
|
let j = i;
|
|
assert_eq!(*j, 100);
|
|
}
|