]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/subspan.rs
Rollup merge of #106591 - Ezrashaw:attempted-integer-identifer, r=Estebank
[rust.git] / tests / ui / proc-macro / subspan.rs
1 // aux-build:subspan.rs
2
3 extern crate subspan;
4
5 use subspan::subspan;
6
7 // This one emits no error.
8 subspan!("");
9
10 // Exactly one 'hi'.
11 subspan!("hi"); //~ ERROR found 'hi's
12
13 // Now two, back to back.
14 subspan!("hihi"); //~ ERROR found 'hi's
15
16 // Now three, back to back.
17 subspan!("hihihi"); //~ ERROR found 'hi's
18
19 // Now several, with spacing.
20 subspan!("why I hide? hi!"); //~ ERROR found 'hi's
21 subspan!("hey, hi, hidy, hidy, hi hi"); //~ ERROR found 'hi's
22 subspan!("this is a hi, and this is another hi"); //~ ERROR found 'hi's
23 subspan!("how are you this evening"); //~ ERROR found 'hi's
24 subspan!("this is highly eradic"); //~ ERROR found 'hi's
25
26 fn main() { }