2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
2023-03-25 11:28:28 -05:00
|
|
|
|
|
|
|
pub struct Foo(bar::Bar);
|
|
|
|
|
|
|
|
pub mod bar {
|
|
|
|
pub struct Foo(pub Bar);
|
|
|
|
pub struct Bar(pub char);
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn warning() -> Foo {
|
|
|
|
use bar::*;
|
|
|
|
#[deny(unused_imports)]
|
|
|
|
use self::Foo; // no error
|
|
|
|
Foo(Bar('a'))
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|