| //! Tests specifically related to target handling (lib, bins, examples, tests, benches). |
| use cargo_test_support::project; |
| fn warn_unmatched_target_filters() { |
| .file("src/lib.rs", r#"fn main() {}"#) |
| p.cargo("check --tests --bins --examples --benches") |
| [WARNING] Target filters `bins`, `tests`, `examples`, `benches` specified, \ |
| but no targets matched. This is a no-op |
| fn reserved_windows_target_name() { |
| .file("src/main.rs", "fn main() {}") |
| [WARNING] binary target `con` is a reserved Windows filename, \ |
| this target will not work on Windows platforms |
| .with_stderr("[CHECKING] foo[..]\n[FINISHED][..]") |