]> git.lizzy.rs Git - rust.git/blob - src/test/ui/primitive-binop-lhs-mut.rs
Rollup merge of #95376 - WaffleLapkin:drain_keep_rest, r=dtolnay
[rust.git] / src / test / ui / primitive-binop-lhs-mut.rs
1 // run-pass
2
3 fn main() {
4     let x = Box::new(0);
5     assert_eq!(0, *x + { drop(x); let _ = Box::new(main); 0 });
6 }