]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/cross-crate-pat-span.rs
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / ui / macros / cross-crate-pat-span.rs
1 // edition:2021
2 // check-pass
3 // aux-build: foreign-crate-macro-pat.rs
4 //
5 // Tests that the edition of the foreign crate is used
6 // when determining the behavior of the `:pat` matcher.
7
8 extern crate foreign_crate_macro_pat;
9
10 fn main() {
11     let _b = foreign_crate_macro_pat::custom_matches!(b'3', b'0' ..= b'9');
12 }