]>
git.proxmox.com Git - rustc.git/blob - tests/ui/hygiene/legacy_interaction.rs
4 // aux-build:legacy_interaction.rs
6 #![feature(decl_macro)]
9 extern crate legacy_interaction
;
21 // Unless this macro opts out of hygiene, it should resolve the same wherever it is invoked.
23 ::legacy_interaction
::m
!();
24 f(); // This should resolve to (1)
25 fn g() {}
// We want (2) resolve to this, not to (4)
31 fn f() -> bool { true }
// (3)
32 fn g() -> bool { true }
// (4)
36 let _
: bool
= f(); // This should resolve to (3)
37 let _
: bool
= g(); // This should resolve to (4)