Add a test for #27054

This commit is contained in:
varkor 2019-02-25 23:57:08 +00:00
parent b4b8a6e0bb
commit 1dea6e00de

View File

@ -0,0 +1,6 @@
// run-pass
fn main() {
let x = Box::new(0);
assert_eq!(0, *x + { drop(x); let _ = Box::new(main); 0 });
}