Skip to content

Commit 32ac238

Browse files
committed
add test for issue-4355
1 parent a96e706 commit 32ac238

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

tests/source/issue-4355.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}

0 commit comments

Comments
 (0)