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 a2b7197 commit 6cd8e87Copy full SHA for 6cd8e87
tests/testsuite/profile_custom.rs
@@ -1,5 +1,39 @@
1
use cargo_test_support::{basic_lib_manifest, project};
2
3
+#[cargo_test]
4
+fn inherits_on_release() {
5
+ let p = project()
6
+ .file(
7
+ "Cargo.toml",
8
+ r#"
9
+ cargo-features = ["named-profiles"]
10
+
11
+ [package]
12
+ name = "foo"
13
+ version = "0.0.1"
14
+ authors = []
15
16
+ [profile.release]
17
+ inherits = "dev"
18
+ "#,
19
+ )
20
+ .file("src/lib.rs", "")
21
+ .build();
22
23
+ p.cargo("build")
24
+ .masquerade_as_nightly_cargo()
25
+ .with_status(101)
26
+ .with_stderr(
27
+ "\
28
+[ERROR] failed to parse manifest at [..]
29
30
+Caused by:
31
+ An 'inherits' must not specified root profile 'release'
32
+"
33
34
+ .run();
35
+}
36
37
#[cargo_test]
38
fn missing_inherits() {
39
let p = project()
0 commit comments