Skip to content

Commit

Permalink
add test for issue-4355
Browse files Browse the repository at this point in the history
  • Loading branch information
sasurau4 committed Dec 2, 2020
1 parent e2a84c6 commit 509859a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/source/issue-4355.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
impl Drop for LockGuard {
fn drop(&mut self) {
LockMap::unlock(&self.0.0, &self.0.1);
}
}

fn main() {
let _ = ((1,),).0.0;

let t1 = (1u8, 2u8);
let mut t2 = (t1, 3u8);
t2.1 = t2.0.1;
}
13 changes: 13 additions & 0 deletions tests/target/issue-4355.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
impl Drop for LockGuard {
fn drop(&mut self) {
LockMap::unlock(&self.0.0, &self.0.1);
}
}

fn main() {
let _ = ((1,),).0.0;

let t1 = (1u8, 2u8);
let mut t2 = (t1, 3u8);
t2.1 = t2.0.1;
}

0 comments on commit 509859a

Please sign in to comment.