mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
17 lines
240 B
Rust
17 lines
240 B
Rust
![]() |
// check-pass
|
||
|
#![warn(unused_imports)]
|
||
|
|
||
|
pub mod bar {
|
||
|
pub struct Foo(pub Bar);
|
||
|
pub struct Bar(pub char);
|
||
|
}
|
||
|
|
||
|
use bar::*;
|
||
|
|
||
|
pub fn warning() -> Foo {
|
||
|
use bar::Foo; //~ WARNING imported redundantly
|
||
|
Foo(Bar('a'))
|
||
|
}
|
||
|
|
||
|
fn main() {}
|