rust/tests/ui/lint/use-redundant/use-redundant-glob.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
248 B
Rust
Raw Normal View History

// 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() {}