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