]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro-method-issue-4621.rs
Rollup merge of #106950 - the8472:fix-splice-miri, r=cuviper
[rust.git] / tests / ui / macros / macro-method-issue-4621.rs
1 // run-pass
2
3 struct A;
4
5 macro_rules! make_thirteen_method {() => (fn thirteen(&self)->isize {13})}
6 impl A { make_thirteen_method!(); }
7
8 fn main() {
9     assert_eq!(A.thirteen(),13);
10 }