2023-03-25 09:28:28 -07:00
|
|
|
//@ check-pass
|
2024-04-11 14:10:34 -04:00
|
|
|
#![warn(redundant_imports)]
|
2023-03-25 09:28:28 -07:00
|
|
|
|
|
|
|
|
pub mod bar {
|
|
|
|
|
pub struct Foo(pub Bar);
|
|
|
|
|
pub struct Bar(pub char);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn warning() -> bar::Foo {
|
|
|
|
|
use bar::*;
|
2024-04-11 14:10:34 -04:00
|
|
|
use bar::Foo; //~ WARNING imported redundantly
|
2023-03-25 09:28:28 -07:00
|
|
|
Foo(Bar('a'))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|