mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
000e94e67d
Co-Authored-By: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
16 lines
248 B
Rust
16 lines
248 B
Rust
// check-pass
|
|
#![warn(unused_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() {}
|