rust/tests/ui/definition-reachable/field-method.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
234 B
Rust
Raw Normal View History

// 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);
}