rust/tests/ui/macros/issue-42954.fixed
2025-04-08 23:06:31 +03:00

15 lines
278 B
Rust

//@ run-rustfix
#![allow(unused_must_use, unused_comparisons)]
macro_rules! is_plainly_printable {
($i: ident) => {
($i as u32) < 0 //~ ERROR `<` is interpreted as a start of generic arguments
};
}
fn main() {
let c = 'a';
is_plainly_printable!(c);
}