This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Issues
Pull requests
Activity
5b51a8ef4f
rust
/
tests
/
ui
/
macros
/
macro-in-fn.rs
9 lines
93 B
Rust
Raw
Normal View
History
Unescape
Escape
review comments
2019-08-21 16:11:01 -07:00
// run-pass
When declaring a declarative macro in an item it's only accessible inside it
2019-08-15 18:58:20 -07:00
#![
feature(decl_macro)
]
pub
fn
moo
(
)
{
pub
macro
ABC
(
)
{
{
}
}
}
review comments
2019-08-21 16:11:01 -07:00
fn
main
(
)
{
}
Reference in a new issue
Copy permalink