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