Tests assumes the location of build artifacts
You can reproduce this by running either:
$ cargo +nightly test -Zbuild-dir-new-layout
$ CARGO_BUILD_BUILD_DIR=build cargo test
Move the tests and possibly upgrade the underlying testing library (assert_cmd, snapbox, etc). If manually implementing binary lookup and needing to update the implementation, see assert_cmd::cargo::cargo_bin for an example.
This problem was identified by the following crater run: rust-lang/rust#149852