mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +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() {}
|