mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
20 lines
283 B
Rust
20 lines
283 B
Rust
//@ check-pass
|
|
|
|
pub mod bar {
|
|
pub struct Foo(pub Bar);
|
|
pub struct Bar(pub char);
|
|
}
|
|
|
|
pub mod x {
|
|
pub struct Foo(pub crate::bar::Bar);
|
|
}
|
|
|
|
pub fn warning() -> x::Foo {
|
|
use bar::*;
|
|
#[deny(unused_imports)]
|
|
use x::Foo; // no error
|
|
Foo(Bar('a'))
|
|
}
|
|
|
|
fn main() {}
|