mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
17 lines
250 B
Rust
17 lines
250 B
Rust
// https://github.com/rust-lang/rust/issues/114884
|
|
|
|
mod mod1 {
|
|
pub trait TraitA {}
|
|
}
|
|
|
|
mod mod2 {
|
|
mod sub_mod {
|
|
use super::super::mod1::TraitA;
|
|
}
|
|
}
|
|
|
|
use mod2::{sub_mod::TraitA};
|
|
//~^ ERROR: module `sub_mod` is private
|
|
|
|
fn main() {}
|