]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/privacy-early.rs
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
[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 }