summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/sealed-traits/re-exported-trait.fixed
blob: 79b6a6516ab261a5cbfd1e627ad03340eac17081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-rustfix

pub mod a {
    pub use self::b::Trait;
    mod b {
        pub trait Trait {}
    }
}

struct S;
impl a::Trait for S {} //~ ERROR module `b` is private

fn main() {}