We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b81b251 commit 476a1f7Copy full SHA for 476a1f7
tests/testsuite/script.rs
@@ -65,6 +65,26 @@ args: []
65
.run();
66
}
67
68
+#[cargo_test]
69
+fn basic_cargo_toml() {
70
+ let p = cargo_test_support::project()
71
+ .file("src/main.rs", ECHO_SCRIPT)
72
+ .build();
73
+
74
+ p.cargo("-Zscript Cargo.toml")
75
+ .masquerade_as_nightly_cargo(&["script"])
76
+ .with_status(101)
77
+ .with_stdout("")
78
+ .with_stderr(
79
+ "\
80
+error: no such command: `Cargo.toml`
81
82
+<tab>View all installed commands with `cargo --list`
83
+",
84
+ )
85
+ .run();
86
+}
87
88
#[cargo_test]
89
fn path_required() {
90
let p = cargo_test_support::project()
0 commit comments