File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1169,6 +1169,11 @@ fn run_default_multiple_required_features() {
1169
1169
path = "src/foo1.rs"
1170
1170
required-features = ["a"]
1171
1171
1172
+ [[bin]]
1173
+ name = "foo3"
1174
+ path = "src/foo3.rs"
1175
+ required-features = ["b"]
1176
+
1172
1177
[[bin]]
1173
1178
name = "foo2"
1174
1179
path = "src/foo2.rs"
@@ -1177,6 +1182,7 @@ fn run_default_multiple_required_features() {
1177
1182
)
1178
1183
. file ( "src/lib.rs" , "" )
1179
1184
. file ( "src/foo1.rs" , "extern crate foo; fn main() {}" )
1185
+ . file ( "src/foo3.rs" , "extern crate foo; fn main() {}" )
1180
1186
. file ( "src/foo2.rs" , "extern crate foo; fn main() {}" )
1181
1187
. build ( ) ;
1182
1188
@@ -1185,7 +1191,7 @@ fn run_default_multiple_required_features() {
1185
1191
. with_stderr (
1186
1192
"\
1187
1193
error: `cargo run` could not determine which binary to run[..]
1188
- available binaries: foo1, foo2" ,
1194
+ available binaries: foo1, foo2, foo3 " ,
1189
1195
)
1190
1196
. run ( ) ;
1191
1197
}
You can’t perform that action at this time.
0 commit comments