]> git.proxmox.com Git - rustc.git/blob - tests/ui/extern/extern-crate-multiple-missing.rs
New upstream version 1.68.2+dfsg1
[rustc.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 }