Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
lint
/
use-redundant
/
use-redundant-glob-parent.rs
blob: c8c413dccd3f2251ba9d24a711adc466cc31fa61 [
file
] [
log
] [
blame
]
//@ check-pass
#![
warn
(
redundant_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
()
{}