rust/tests/ui/macros/issue-84429-matches-edition.rs
2024-02-16 20:02:50 +00:00

10 lines
205 B
Rust

//@ edition:2021
//@ check-pass
//
// Regression test for issue #84429
// Tests that we can properly invoke `matches!` from a 2021-edition crate.
fn main() {
let _b = matches!(b'3', b'0' ..= b'9');
}