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

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