2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2014-07-11 22:56:46 -05:00
|
|
|
struct A;
|
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
macro_rules! make_thirteen_method {() => (fn thirteen(&self)->isize {13})}
|
2014-11-14 11:18:10 -06:00
|
|
|
impl A { make_thirteen_method!(); }
|
2014-07-11 22:56:46 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
assert_eq!(A.thirteen(),13);
|
|
|
|
}
|