mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
13 lines
318 B
Rust
13 lines
318 B
Rust
//@ edition:2021
|
|
//@ check-pass
|
|
//@ aux-build: foreign-crate-macro-pat.rs
|
|
//
|
|
// Tests that the edition of the foreign crate is used
|
|
// when determining the behavior of the `:pat` matcher.
|
|
|
|
extern crate foreign_crate_macro_pat;
|
|
|
|
fn main() {
|
|
let _b = foreign_crate_macro_pat::custom_matches!(b'3', b'0' ..= b'9');
|
|
}
|