rust/tests/ui/extern/issue-80074.rs

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

21 lines
495 B
Rust
Raw Normal View History

2022-06-28 12:28:04 +09:00
//@ edition:2018
//@ aux-crate:issue_80074=issue-80074-macro.rs
//@ aux-crate:issue_80074_2=issue-80074-macro-2.rs
2022-06-28 12:28:04 +09:00
#[macro_use]
extern crate issue_80074;
#[macro_use(m)]
extern crate issue_80074_2;
//~^^ ERROR: imported macro not found
2022-06-28 12:28:04 +09:00
fn main() {
foo!();
//~^ WARN: macro `foo` is private
//~| WARN: it will become a hard error in a future release!
bar!();
//~^ ERROR: cannot find macro `bar` in this scope
m!();
//~^ ERROR: cannot find macro `m` in this scope
2022-06-28 12:28:04 +09:00
}