3 // ignore-pretty pretty-printing is unhygienic
5 // aux-build:legacy_interaction.rs
7 #![feature(decl_macro)]
10 extern crate legacy_interaction;
22 // Unless this macro opts out of hygiene, it should resolve the same wherever it is invoked.
24 ::legacy_interaction::m!();
25 f(); // This should resolve to (1)
26 fn g() {} // We want (2) resolve to this, not to (4)
32 fn f() -> bool { true } // (3)
33 fn g() -> bool { true } // (4)
37 let _: bool = f(); // This should resolve to (3)
38 let _: bool = g(); // This should resolve to (4)