summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/no-pub-reexports-but-used.rs
blob: 28991bde829f8890a705bbe83c8f350db8efc927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass
// https://github.com/rust-lang/rust/issues/115966

mod m {
    pub(crate) type A = u8;
}

#[warn(unused_imports)] //~ NOTE: the lint level is defined here
pub use m::*;
//~^ WARNING: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough
//~| NOTE: the most public imported item is `pub(crate)`

fn main() {
    let _: A;
}