]> git.lizzy.rs Git - rust.git/blob - src/test/ui/extern-flag/multiple-opts.rs
Rollup merge of #94577 - RalfJung:simd-miri, r=scottmcm
[rust.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 }