2018-07-11 16:25:29 -05:00
|
|
|
// aux-build:macro-use-warned-against.rs
|
|
|
|
// aux-build:macro-use-warned-against2.rs
|
2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2018-07-11 16:25:29 -05:00
|
|
|
|
2018-07-31 17:45:11 -05:00
|
|
|
#![warn(macro_use_extern_crate, unused)]
|
2018-07-11 16:25:29 -05:00
|
|
|
|
|
|
|
#[macro_use] //~ WARN should be replaced at use sites with a `use` statement
|
|
|
|
extern crate macro_use_warned_against;
|
|
|
|
#[macro_use] //~ WARN unused `#[macro_use]`
|
|
|
|
extern crate macro_use_warned_against2;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo!();
|
|
|
|
}
|