We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32a59f6 commit 1f18eb7Copy full SHA for 1f18eb7
src/test/ui/primitive-binop-lhs-mut.rs
@@ -0,0 +1,6 @@
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
+}
0 commit comments