Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
ddb81ce68047d6383a789c8da514e443faea8349
/
.
/
tests
/
ui
/
macros
/
macro-method-issue-4621.rs
blob: a35eeb257dfbce024a08237431225e2c5f9c931f [
file
] [
log
] [
blame
]
//@ run-pass
struct
A
;
macro_rules
!
make_thirteen_method
{()
=>
(
fn
thirteen
(&
self
)->
isize
{
13
})}
impl
A
{
make_thirteen_method
!();
}
fn
main
()
{
assert_eq
!(
A
.
thirteen
(),
13
);
}