]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-public_private_dependencies.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-public_private_dependencies.rs
1 // This test is different from other feature gate tests.
2 // Instead of checking that an error occurs without the feature gate,
3 // it checks that *no* errors/warnings occurs without the feature gate.
4 // This is due to the fact that 'public_private_dependencies' just enables
5 // a lint, so disabling it shouldn't cause any code to stop compiling.
6
7 // run-pass
8 // aux-build:pub_dep.rs
9
10 // Without ![feature(public_private_dependencies)],
11 // this should do nothing/
12 #![deny(exported_private_dependencies)]
13
14 extern crate pub_dep;
15
16 pub struct Foo {
17     pub field: pub_dep::PubType
18 }
19
20 fn main() {}