rust/tests/ui/rust-2018/macro-use-warned-against.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
362 B
Rust
Raw Normal View History

// aux-build:macro-use-warned-against.rs
// aux-build:macro-use-warned-against2.rs
// check-pass
#![warn(macro_use_extern_crate, unused)]
2020-03-07 10:02:32 -06:00
#[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!();
}