summaryrefslogtreecommitdiffstats
path: root/third_party/rust/semver/tests/test_autotrait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/semver/tests/test_autotrait.rs')
-rw-r--r--third_party/rust/semver/tests/test_autotrait.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/rust/semver/tests/test_autotrait.rs b/third_party/rust/semver/tests/test_autotrait.rs
new file mode 100644
index 0000000000..af8534bd73
--- /dev/null
+++ b/third_party/rust/semver/tests/test_autotrait.rs
@@ -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>();
+}