rust/tests/ui/primitive-binop-lhs-mut.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
117 B
Rust
Raw Normal View History

//@ run-pass
2019-02-25 17:57:08 -06:00
fn main() {
let x = Box::new(0);
assert_eq!(0, *x + { drop(x); let _ = Box::new(main); 0 });
}