]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-42954.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / macros / issue-42954.rs
1 // run-rustfix
2
3 #![allow(unused_must_use, unused_comparisons)]
4
5 macro_rules! is_plainly_printable {
6     ($i: ident) => {
7         $i as u32 < 0 //~ `<` is interpreted as a start of generic arguments
8     };
9 }
10
11 fn main() {
12     let c = 'a';
13     is_plainly_printable!(c);
14 }