summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-27054-primitive-binary-ops.rs
blob: c6f925de5d7a870a1fd3d168b0758aa794741d17 (plain)
1
2
3
4
5
// run-pass
fn main() {
    let x = &mut 1;
    assert_eq!(*x + { *x=2; 1 }, 2);
}