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.
8 // aux-build:pub_dep.rs
10 // Without ![feature(public_private_dependencies)],
11 // this should do nothing/
12 #![deny(exported_private_dependencies)]
17 pub field: pub_dep::PubType