forked from mirrors/gecko-dev
semver 1.0 doesn't and won't support Clone on semver::Error[1], so we convert the mozversion error type to store the string version of the error, which is an incompatible change requiring a version bump on the crate. 1. https://github.com/dtolnay/semver/pull/280 Differential Revision: https://phabricator.services.mozilla.com/D147825
12 lines
373 B
Rust
12 lines
373 B
Rust
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>();
|
|
}
|