]> git.proxmox.com Git - rustc.git/blob - src/test/ui/extern-flag/multiple-opts.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / extern-flag / multiple-opts.rs
1 // aux-crate:priv,noprelude:somedep=somedep.rs
2 // compile-flags: -Zunstable-options
3 // edition:2018
4
5 // Test for multiple options to --extern. Can't test for errors from both
6 // options at the same time, so this only checks that noprelude is honored.
7
8 #![warn(exported_private_dependencies)]
9
10 // Module to avoid adding to prelude.
11 pub mod m {
12 extern crate somedep;
13 pub struct PublicType {
14 pub field: somedep::S,
15 }
16 }
17
18 fn main() {
19 somedep::somefun(); //~ ERROR failed to resolve
20 }