Add a test for #27054
This commit is contained in:
parent
b4b8a6e0bb
commit
1dea6e00de
6
src/test/ui/primitive-binop-lhs-mut.rs
Normal file
6
src/test/ui/primitive-binop-lhs-mut.rs
Normal 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 });
|
||||
}
|
Loading…
Reference in New Issue
Block a user