diff --git a/src/cargo/util/toml/mod.rs b/src/cargo/util/toml/mod.rs index cf20471ca6c..34df8af04e4 100644 --- a/src/cargo/util/toml/mod.rs +++ b/src/cargo/util/toml/mod.rs @@ -1311,7 +1311,7 @@ pub fn to_real_manifest( let edition_msrv = RustVersion::try_from(edition_msrv).unwrap(); if !edition_msrv.is_compatible_with(pkg_msrv.as_partial()) { bail!( - "rust-version {} is older than first version ({}) required by \ + "rust-version {} is imcompatible with the version ({}) required by \ the specified edition ({})", pkg_msrv, edition_msrv, diff --git a/tests/testsuite/rust_version.rs b/tests/testsuite/rust_version.rs index 61f79b2a494..23363f6592c 100644 --- a/tests/testsuite/rust_version.rs +++ b/tests/testsuite/rust_version.rs @@ -82,7 +82,7 @@ fn rust_version_older_than_edition() { [ERROR] failed to parse manifest at `[ROOT]/foo/Cargo.toml` Caused by: - rust-version 1.1 is older than first version (1.31.0) required by the specified edition (2018) + rust-version 1.1 is imcompatible with the version (1.31.0) required by the specified edition (2018) "#]]) .run();