summaryrefslogtreecommitdiffstats
path: root/src/test/ui/primitive-binop-lhs-mut.rs
blob: 4f1c456ace354fe3b1ed6b24f0ebb888ea01f69b (plain)
1
2
3
4
5
6
// run-pass

fn main() {
    let x = Box::new(0);
    assert_eq!(0, *x + { drop(x); let _ = Box::new(main); 0 });
}