Fix hard-coded stderr in run-make test

This commit is contained in:
Michael Goulet 2024-09-22 21:56:38 -04:00
parent 3be34a8b53
commit 9132770c8f

View File

@ -64,10 +64,10 @@ note: there are multiple different versions of crate `dependency` in the depende
5 | fn foo(&self);
| -------------- the method is available for `dep_2_reexport::Type` here
|
::: multiple-dep-versions.rs:4:32
::: multiple-dep-versions.rs:4:18
|
4 | use dependency::{do_something, Trait};
| ----- `Trait` imported here doesn't correspond to the right version of crate `dependency`"#,
4 | use dependency::{Trait, do_something};
| ----- `Trait` imported here doesn't correspond to the right version of crate `dependency`"#,
)
.assert_stderr_contains(
r#"
@ -92,9 +92,9 @@ note: there are multiple different versions of crate `dependency` in the depende
6 | fn bar();
| --------- the associated function is available for `dep_2_reexport::Type` here
|
::: multiple-dep-versions.rs:4:32
::: multiple-dep-versions.rs:4:18
|
4 | use dependency::{do_something, Trait};
| ----- `Trait` imported here doesn't correspond to the right version of crate `dependency`"#,
4 | use dependency::{Trait, do_something};
| ----- `Trait` imported here doesn't correspond to the right version of crate `dependency`"#,
);
}