summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/macro-private-reexport.rs
blob: d0aab528ed480df369b2d21f02bf0cd814a529ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// edition:2021

#![feature(decl_macro)]

mod foo {
    macro_rules! bar {
        () => {};
    }

    pub use bar as _; //~ ERROR `bar` is only public within the crate, and cannot be re-exported outside

    macro baz() {}

    pub use baz as _; //~ ERROR `baz` is private, and cannot be re-exported
}

fn main() {}