mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
15 lines
365 B
Rust
15 lines
365 B
Rust
//@ aux-build:macro-use-warned-against.rs
|
|
//@ aux-build:macro-use-warned-against2.rs
|
|
//@ check-pass
|
|
|
|
#![warn(macro_use_extern_crate, unused)]
|
|
|
|
#[macro_use] //~ WARN should be replaced at use sites with a `use` item
|
|
extern crate macro_use_warned_against;
|
|
#[macro_use] //~ WARN unused `#[macro_use]`
|
|
extern crate macro_use_warned_against2;
|
|
|
|
fn main() {
|
|
foo!();
|
|
}
|