2021-11-26 14:37:56 -06:00
|
|
|
// If multiple `extern crate` resolutions fail each of them should produce an error
|
|
|
|
extern crate bar; //~ ERROR can't find crate for `bar`
|
|
|
|
extern crate foo; //~ ERROR can't find crate for `foo`
|
|
|
|
|
|
|
|
fn main() {
|
2021-11-26 15:39:44 -06:00
|
|
|
// If the crate name introduced by `extern crate` failed to resolve then subsequent
|
|
|
|
// derived paths do not emit additional errors
|
2021-11-26 14:37:56 -06:00
|
|
|
foo::something();
|
|
|
|
bar::something();
|
|
|
|
}
|