rust/tests/ui/privacy/sealed-traits/re-exported-trait.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
208 B
Rust
Raw Permalink Normal View History

//@ run-rustfix
2024-02-06 20:42:01 -06:00
#![allow(dead_code)]
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() {}