summaryrefslogtreecommitdiffstats
path: root/vendor/semver/tests/test_autotrait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/semver/tests/test_autotrait.rs')
-rw-r--r--vendor/semver/tests/test_autotrait.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/semver/tests/test_autotrait.rs b/vendor/semver/tests/test_autotrait.rs
new file mode 100644
index 0000000..5d16689
--- /dev/null
+++ b/vendor/semver/tests/test_autotrait.rs
@@ -0,0 +1,14 @@
+#![allow(clippy::extra_unused_type_parameters)]
+
+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>();
+}