Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
macros
/
macro-method-issue-4621.rs
blob: 342fad5f62e88636021847ba716f3964bbe5ad36 [
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
);
}