mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
16 lines
252 B
Rust
16 lines
252 B
Rust
//@ check-pass
|
|
#![warn(redundant_imports)]
|
|
|
|
pub mod bar {
|
|
pub struct Foo(pub Bar);
|
|
pub struct Bar(pub char);
|
|
}
|
|
|
|
pub fn warning() -> bar::Foo {
|
|
use bar::*;
|
|
use bar::Foo; //~ WARNING imported redundantly
|
|
Foo(Bar('a'))
|
|
}
|
|
|
|
fn main() {}
|