]> git.lizzy.rs Git - rust.git/blob - tests/ui/did_you_mean/pub-macro-rules.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / did_you_mean / pub-macro-rules.rs
1 #[macro_use] mod bleh {
2     pub macro_rules! foo { //~ ERROR can't qualify macro_rules invocation
3         ($n:ident) => (
4             fn $n () -> i32 {
5                 1
6             }
7         )
8     }
9
10 }
11
12 foo!(meh);
13
14 fn main() {
15     println!("{}", meh());
16 }