Skip to content

Commit

Permalink
Add test of autotrait impls
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 2, 2022
1 parent bc69917 commit f0d32dc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_autotrait.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fn assert_send_sync<T: Send + Sync>() {}

#[test]
fn test() {
assert_send_sync::<semver::BuildMetadata>();
assert_send_sync::<semver::Comparator>();
assert_send_sync::<semver::Error>();
assert_send_sync::<semver::Prerelease>();
assert_send_sync::<semver::Version>();
assert_send_sync::<semver::VersionReq>();
assert_send_sync::<semver::Op>();
}

0 comments on commit f0d32dc

Please sign in to comment.