summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/sealed-traits/re-exported-trait.rs
blob: 5f96dfdcbd6c4ceef0706f9e1219aeba62da346e (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::b::Trait for S {} //~ ERROR module `b` is private

fn main() {}