mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 05:10:37 +00:00
Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
20 lines
206 B
Rust
20 lines
206 B
Rust
//@ check-pass
|
|
|
|
#![allow(unused_imports, dead_code)]
|
|
|
|
use foo::Foo;
|
|
|
|
mod foo {
|
|
pub use m::Foo; // this should shadow d::Foo
|
|
}
|
|
|
|
mod m {
|
|
pub struct Foo;
|
|
}
|
|
|
|
mod d {
|
|
pub struct Foo;
|
|
}
|
|
|
|
fn main() {}
|