rust/src/test/ui/definition-reachable/private-use.rs
Matthew Jasper 8ae8bc2808 Fix various issues with making items reachable through macros
* Allow items to be accessible through private modules and fields when a
  macro can access them.
* Don't mark type-private items as reachable.
* Never make items exported/public via macros
2019-08-05 23:50:47 +01:00

10 lines
192 B
Rust

// Check that private use statements can be used by
// run-pass
// aux-build:private-use-macro.rs
extern crate private_use_macro;
fn main() {
assert_eq!(private_use_macro::m!(), 57);
}