mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
20 lines
619 B
Rust
20 lines
619 B
Rust
#![deny(unused_imports)]
|
|
#![crate_type = "rlib"]
|
|
|
|
mod my_mod {
|
|
pub trait Foo {}
|
|
pub type TyFoo = dyn Foo;
|
|
pub struct Bar;
|
|
pub type TyBar = Bar;
|
|
}
|
|
|
|
pub use self::my_mod::Foo as _;
|
|
pub use self::my_mod::TyFoo as _; //~ ERROR unused import
|
|
pub use self::my_mod::Bar as _; //~ ERROR unused import
|
|
pub use self::my_mod::TyBar as _; //~ ERROR unused import
|
|
pub use self::my_mod::{Bar as _}; //~ ERROR unused import
|
|
pub use self::my_mod::{Bar as _, Foo as _}; //~ ERROR unused import
|
|
pub use self::my_mod::{Bar as _, TyBar as _}; //~ ERROR unused imports
|
|
#[allow(unused_imports)]
|
|
use self::my_mod::TyBar as _;
|