]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/privacy.rs
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / hygiene / privacy.rs
1 #![feature(decl_macro)]
2
3 mod foo {
4     fn f() {}
5
6     pub macro m($e:expr) {
7         f();
8         self::f();
9         ::foo::f();
10         $e
11     }
12 }
13
14 fn main() {
15     foo::m!(
16         foo::f() //~ ERROR `f` is private
17     );
18 }