]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/pub-macro-rules.rs
Test `expect` with `forbid` and fix doc errors (RFC-2383)
[rust.git] / src / test / 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 }