rust/src/test/ui/definition-reachable/field-method.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

11 lines
232 B
Rust

// Check that functions accessible through a field visible to a macro are
// considered reachable
// aux-build:nested-fn-macro.rs
// run-pass
extern crate nested_fn_macro;
fn main() {
assert_eq!(nested_fn_macro::m!(), 12);
}