We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e243884 commit f535b67Copy full SHA for f535b67
tests/testsuite/freshness_checksum.rs
@@ -14,6 +14,19 @@ use cargo_test_support::{
14
15
use super::death;
16
17
+#[cargo_test]
18
+fn non_nightly_fails() {
19
+ let p = project().file("src/main.rs", "fn main() {}").build();
20
+ let mut cmd = p.cargo("build").arg("-Zchecksum-freshness").build_command();
21
+ let output = cmd.output().unwrap();
22
+ assert!(
23
+ String::from_utf8(output.stderr)
24
+ .unwrap()
25
+ .contains("error: the `-Z` flag is only accepted on the nightly channel of Cargo, but this is the `stable` channel")
26
+ );
27
+ assert!(!output.status.success());
28
+}
29
+
30
#[cargo_test(nightly, reason = "requires -Zchecksum-hash-algorithm")]
31
fn checksum_actually_uses_checksum() {
32
let p = project()
0 commit comments