mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-22 21:44:44 +00:00
15 lines
205 B
Rust
15 lines
205 B
Rust
//@ run-rustfix
|
|
#![allow(dead_code)]
|
|
|
|
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() {}
|