We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba4df9f commit 76e5433Copy full SHA for 76e5433
tests/testsuite/build_dir.rs
@@ -491,6 +491,26 @@ fn future_incompat_should_output_to_build_dir() {
491
assert_exists(&p.root().join("build-dir/.future-incompat-report.json"));
492
}
493
494
+#[cargo_test]
495
+fn template_should_error_for_invalid_variables() {
496
+ let p = project()
497
+ .file("src/main.rs", r#"fn main() { println!("Hello, World!") }"#)
498
+ .file(
499
+ ".cargo/config.toml",
500
+ r#"
501
+ [build]
502
+ build-dir = "{fake}/build-dir"
503
+ target-dir = "target-dir"
504
+ "#,
505
+ )
506
+ .build();
507
+
508
+ p.cargo("build -Z build-dir")
509
+ .masquerade_as_nightly_cargo(&["build-dir"])
510
+ .enable_mac_dsym()
511
+ .run();
512
+}
513
514
#[cargo_test]
515
fn template_workspace_root() {
516
let p = project()
0 commit comments