mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-09 22:37:34 +00:00
14 lines
186 B
Rust
14 lines
186 B
Rust
|
// 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() {}
|