blob: 33266d1c0478af0b51bc83a11a2c0a6704d6269e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//! Test evaluation order in binary operations with primitive types.
//@ run-pass
fn main() {
let x = Box::new(0);
assert_eq!(
0,
*x + {
drop(x);
let _ = Box::new(main);
0
}
);
}
|