2023-06-16 19:44:06 +00:00
|
|
|
//@ run-rustfix
|
2024-02-07 10:42:01 +08:00
|
|
|
#![allow(dead_code)]
|
2023-06-16 19:44:06 +00:00
|
|
|
|
|
|
|
|
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() {}
|