rust/src/test/run-pass/issues/issue-27054-primitive-binary-ops.rs
2018-12-25 21:08:33 -07:00

6 lines
83 B
Rust

// run-pass
fn main() {
let x = &mut 1;
assert_eq!(*x + { *x=2; 1 }, 2);
}