]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/pub-method-inside-macro.rs
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / ui / macros / pub-method-inside-macro.rs
1 // run-pass
2 // Issue #17436
3
4 // pretty-expanded FIXME #23616
5
6 mod bleh {
7     macro_rules! foo {
8         () => {
9             pub fn bar(&self) { }
10         }
11     }
12
13     pub struct S;
14
15     impl S {
16         foo!();
17     }
18 }
19
20 fn main() {
21     bleh::S.bar();
22 }