Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
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
()
{}