Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
imports
/
extern-crate-self
/
extern-crate-self-macro-item.rs
blob: a1feaf2e16151a00cc4145ea27dbc0aebbaafad7 [
file
] [
log
] [
blame
]
//@ build-pass (FIXME(62277): could be check-pass?)
// 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
()
{}