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