]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/pub-method-inside-macro.rs
Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwco
[rust.git] / tests / 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 }