You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[test]fnrun_proper_binary_main_rs(){let p = project("foo").file("Cargo.toml",r#" [package] name = "foo" authors = [] version = "0.0.0" [[bin]] name = "foo" "#).file("src/lib.rs","").file("src/bin/main.rs",r#" fn main() { } "#);assert_that(p.cargo_process("run").arg("--bin").arg("foo"),execs().with_status(0));}
The problem appears to be that cargo should look for src/bin/main.rs as well as src/main.rs for defaults when named binaries are not found in src/bin/<name>.rs. This was introduced in e3edc06.