rust/tests/ui/imports/append-import-suggestion.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
250 B
Rust
Raw Normal View History

// 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() {}