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