rust/tests/ui/imports/multiple-extern-by-macro-for-custom.rs

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

20 lines
256 B
Rust
Raw Normal View History

//@ edition: 2021
//@ aux-build: empty.rs
// issue#128813
extern crate empty;
macro_rules! m {
() => {
extern crate std as empty;
//~^ ERROR: the name `empty` is defined multiple times
};
}
m!();
fn main() {
use ::empty;
}