diff --git a/tests/testsuite/fix.rs b/tests/testsuite/fix.rs index 7b1a5d12fc9d..9646b8bf76d7 100644 --- a/tests/testsuite/fix.rs +++ b/tests/testsuite/fix.rs @@ -29,7 +29,10 @@ fn do_not_fix_broken_builds() { p.cargo("fix --allow-no-vcs") .env("__CARGO_FIX_YOLO", "1") .with_status(101) - .with_stderr_contains("[ERROR] could not compile `foo` (lib) due to 1 previous error") + .with_stderr_line_without( + &["[ERROR] could not compile `foo` (lib) due to 1 previous error"], + &[], + ) .run(); assert!(p.read_file("src/lib.rs").contains("let mut x = 3;")); }