Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
macros
/
macro-named-default.rs
blob: bca0e005083d205aa50ad596d141b2e67c53f283 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
macro_rules
!
default
{
(
$
(
$x
:
tt
)*)
=>
{
$
(
$x
)*
}
}
default
!
{
struct
A
;
}
impl
A
{
default
!
{
fn
foo
(&
self
)
{}
}
}
fn
main
()
{
A
.
foo
();
}