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