rust/tests/ui/pattern/integer-range-binding.rs
2023-01-11 09:32:08 +00:00

9 lines
155 B
Rust

// run-pass
fn main() {
let -2147483648..=2147483647 = 1;
let 0..=255 = 0u8;
let -128..=127 = 0i8;
let '\u{0000}'..='\u{10FFFF}' = 'v';
}