rust/tests/ui/imports/extern-crate-self/extern-crate-self-macro-item.rs

13 lines
247 B
Rust
Raw Normal View History

// build-pass (FIXME(62277): could be check-pass?)
2019-01-07 09:09:17 -06:00
// Test that `extern crate self;` is accepted
// syntactically as an item for use in a macro.
macro_rules! accept_item { ($x:item) => {} }
accept_item! {
extern crate self;
}
fn main() {}