summary refs log tree commit diff
path: root/tests/ui/macros/cross-crate-pat-span.rs
blob: cd4e791d2f993ce5a68ad56e55f983374c0e4992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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');
}