summaryrefslogtreecommitdiffstats
path: root/src/test/ui/definition-reachable/field-method.rs
blob: 60e895a2f9a0742db232c47f95de091562c1a320 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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);
}