Skip to content

Commit

Permalink
Check contents of moved string
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed Jan 25, 2022
1 parent c2967b7 commit 0af1133
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ fn test_unique_to_shared_ptr() {
let ptr = &*unique as *const _;
let shared = unique.to_shared();
assert_eq!(&*shared as *const _, ptr);
assert_eq!(&*shared, "2020");
}

#[test]
Expand Down

0 comments on commit 0af1133

Please sign in to comment.