Sign in
fuchsia
/
third_party
/
rust
/
eda6dc928323fcd0ac1b51cea1aa79ab17e8519d
/
.
/
tests
/
ui
/
lint
/
use-redundant
/
use-redundant-glob.rs
blob: 52383d4ceffc30235d18da7bd574c617155c6f7c [
file
] [
log
] [
blame
]
//@ 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
()
{}