diff --git a/src/cargo/util_schemas/core/package_id_spec.rs b/src/cargo/util_schemas/core/package_id_spec.rs index 4e6d9e59475..60f0a671c43 100644 --- a/src/cargo/util_schemas/core/package_id_spec.rs +++ b/src/cargo/util_schemas/core/package_id_spec.rs @@ -602,5 +602,6 @@ mod tests { .is_err()); assert!(PackageIdSpec::parse("@1.2.3").is_err()); assert!(PackageIdSpec::parse("registry+https://github.com").is_ok()); + assert!(PackageIdSpec::parse("https://crates.io/1foo#1.2.3").is_ok()) } }