mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
11 lines
392 B
Rust
11 lines
392 B
Rust
// 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() {
|
|
// If the crate name introduced by `extern crate` failed to resolve then subsequent
|
|
// derived paths do not emit additional errors
|
|
foo::something();
|
|
bar::something();
|
|
}
|