We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fa6fdc commit 2f90430Copy full SHA for 2f90430
tests/testsuite/build.rs
@@ -4239,6 +4239,28 @@ fn cargo_build_empty_target() {
4239
.run();
4240
}
4241
4242
+#[cargo_test]
4243
+fn cargo_build_with_unsupported_short_target_flag() {
4244
+ let p = project()
4245
+ .file("Cargo.toml", &basic_bin_manifest("foo"))
4246
+ .file("src/main.rs", "fn main() {}")
4247
+ .build();
4248
+
4249
+ p.cargo("build -t")
4250
+ .arg("")
4251
+ .with_stderr(
4252
+ "\
4253
+error: unexpected argument '-t' found
4254
4255
+Usage: cargo[EXE] build [OPTIONS]
4256
4257
+For more information, try '--help'.
4258
+",
4259
+ )
4260
+ .with_status(1)
4261
+ .run();
4262
+}
4263
4264
#[cargo_test]
4265
fn build_all_workspace() {
4266
let p = project()
0 commit comments