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 5e4a1db commit 6a980bcCopy full SHA for 6a980bc
tests/testsuite/standard_lib.rs
@@ -323,6 +323,32 @@ fn check_core() {
323
.run();
324
}
325
326
+#[cargo_test(build_std_mock)]
327
+fn test_std_on_unsupported_target() {
328
+ let setup = setup();
329
+
330
+ let p = project()
331
+ .file(
332
+ "src/main.rs",
333
+ r#"
334
+ fn main() {
335
+ println!("hello");
336
+ }
337
+ "#,
338
+ )
339
+ .build();
340
341
+ p.cargo("build")
342
+ .arg("--target=aarch64-unknown-none")
343
+ .arg("--target=x86_64-unknown-none")
344
+ .build_std(&setup)
345
+ .with_status(101)
346
+ .with_stderr_data(str![[r#"
347
+[ERROR] building std is not supported on the following targets: [..]
348
+"#]])
349
+ .run();
350
+}
351
352
#[cargo_test(build_std_mock)]
353
fn depend_same_as_std() {
354
let setup = setup();
0 commit comments