]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/macro_rules-unmatchable-literals.rs
Rollup merge of #106962 - compiler-errors:use-sugg-span, r=oli-obk
[rust.git] / tests / ui / macros / macro_rules-unmatchable-literals.rs
1 // Pinning tests for things that don't work to make sure we notice if that changes
2
3 #![crate_type = "lib"]
4
5 macro_rules! octal_with_bad_digit {
6     ( 0o1238 ) => {}; //~ ERROR invalid digit
7 }
8
9 macro_rules! binary_with_bad_digit {
10     ( 0b012 ) => {}; //~ ERROR invalid digit
11 }
12
13 // This can't happen for Hex and Decimal as things like `123A` and `0xFFG`
14 // get treated as unknown *suffixes*, rather than digits.