mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
1bd997a452
Split invalid-compile-flags into run-pass & invalid Update tests/ui/README.md
14 lines
257 B
Rust
14 lines
257 B
Rust
//! Regression test for https://github.com/rust-lang/rust/issues/18464
|
|
//@ run-pass
|
|
#![deny(dead_code)]
|
|
|
|
const LOW_RANGE: char = '0';
|
|
const HIGH_RANGE: char = '9';
|
|
|
|
fn main() {
|
|
match '5' {
|
|
LOW_RANGE..=HIGH_RANGE => (),
|
|
_ => (),
|
|
};
|
|
}
|