]> git.proxmox.com Git - rustc.git/blob - src/test/ui/annotate-snippet/multispan.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / annotate-snippet / multispan.rs
1 // aux-build:multispan.rs
2 // compile-flags: --error-format human-annotate-rs -Z unstable-options
3
4 #![feature(proc_macro_hygiene)]
5
6 extern crate multispan;
7
8 use multispan::hello;
9
10 fn main() {
11 // This one emits no error.
12 hello!();
13
14 // Exactly one 'hi'.
15 hello!(hi); //~ ERROR hello to you, too!
16
17 // Now two, back to back.
18 hello!(hi hi); //~ ERROR hello to you, too!
19
20 // Now three, back to back.
21 hello!(hi hi hi); //~ ERROR hello to you, too!
22
23 // Now several, with spacing.
24 hello!(hi hey hi yo hi beep beep hi hi); //~ ERROR hello to you, too!
25 hello!(hi there, hi how are you? hi... hi.); //~ ERROR hello to you, too!
26 hello!(whoah. hi di hi di ho); //~ ERROR hello to you, too!
27 hello!(hi good hi and good bye); //~ ERROR hello to you, too!
28 }