]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/multispan.rs
Rollup merge of #106816 - TimNN:rental-remap, r=oli-obj
[rust.git] / tests / ui / proc-macro / multispan.rs
1 // aux-build:multispan.rs
2
3 extern crate multispan;
4
5 use multispan::hello;
6
7 fn main() {
8     // This one emits no error.
9     hello!();
10
11     // Exactly one 'hi'.
12     hello!(hi); //~ ERROR hello to you, too!
13
14     // Now two, back to back.
15     hello!(hi hi); //~ ERROR hello to you, too!
16
17     // Now three, back to back.
18     hello!(hi hi hi); //~ ERROR hello to you, too!
19
20     // Now several, with spacing.
21     hello!(hi hey hi yo hi beep beep hi hi); //~ ERROR hello to you, too!
22     hello!(hi there, hi how are you? hi... hi.); //~ ERROR hello to you, too!
23     hello!(whoah. hi di hi di ho); //~ ERROR hello to you, too!
24     hello!(hi good hi and good bye); //~ ERROR hello to you, too!
25 }