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 f9335ba commit f262297Copy full SHA for f262297
tests/testsuite/build.rs
@@ -135,6 +135,27 @@ fn incremental_config() {
135
.run();
136
}
137
138
+#[cargo_test]
139
+fn cargo_compile_with_unsupported_mode() {
140
+ let p = project()
141
+ .file("Cargo.toml", &basic_bin_manifest("foo"))
142
+ .file("src/foo.rs", &main_file(r#""i am foo""#, &[]))
143
+ .build();
144
+
145
+ p.cargo("build --debug")
146
+ .with_stderr(
147
+ "\
148
+error: unexpected argument '--debug' found
149
150
+Usage: cargo[EXE] build [OPTIONS]
151
152
+For more information, try '--help'.
153
+",
154
+ )
155
+ .with_status(1)
156
+ .run();
157
+}
158
159
#[cargo_test]
160
fn cargo_compile_with_workspace_excluded() {
161
let p = project().file("src/main.rs", "fn main() {}").build();
0 commit comments