]> git.lizzy.rs Git - rust.git/blob - tests/ui/extern/extern-crate-multiple-missing.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / extern / extern-crate-multiple-missing.rs
1 // If multiple `extern crate` resolutions fail each of them should produce an error
2 extern crate bar; //~ ERROR can't find crate for `bar`
3 extern crate foo; //~ ERROR can't find crate for `foo`
4
5 fn main() {
6     // If the crate name introduced by `extern crate` failed to resolve then subsequent
7     // derived paths do not emit additional errors
8     foo::something();
9     bar::something();
10 }