Skip to content

Commit e80b5c2

Browse files
committed
Add failing test
1 parent 96be674 commit e80b5c2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/testsuite/package_features.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,32 @@ fn other_member_from_current() {
272272
.run();
273273
}
274274

275+
276+
#[cargo_test]
277+
fn virtual_typo_member_feature_default_resolver() {
278+
project()
279+
.file(
280+
"Cargo.toml",
281+
r#"
282+
[package]
283+
name = "a"
284+
version = "0.1.0"
285+
286+
[features]
287+
deny-warnings = []
288+
"#,
289+
)
290+
.file("src/lib.rs", "")
291+
.build()
292+
.cargo("check --features a/deny-warning")
293+
.masquerade_as_nightly_cargo()
294+
.with_status(101)
295+
.with_stderr(
296+
"[ERROR] none of the selected packages contains these features: a/deny-warning",
297+
)
298+
.run();
299+
}
300+
275301
#[cargo_test]
276302
fn virtual_member_slash() {
277303
// member slash feature syntax

0 commit comments

Comments
 (0)