We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a96e706 commit 32ac238Copy full SHA for 32ac238
tests/source/issue-4355.rs
@@ -0,0 +1,13 @@
1
+impl Drop for LockGuard {
2
+ fn drop(&mut self) {
3
+ LockMap::unlock(&self.0.0, &self.0.1);
4
+ }
5
+}
6
+
7
+fn main() {
8
+ let _ = ((1,),).0.0;
9
10
+ let t1 = (1u8, 2u8);
11
+ let mut t2 = (t1, 3u8);
12
+ t2.1 = t2.0.1;
13
tests/target/issue-4355.rs
+ LockMap::unlock(&self.0 .0, &self.0 .1);
+ let _ = ((1,),).0 .0;
+ t2.1 = t2.0 .1;
0 commit comments