rust/tests/ui/macros/expr_2021_implicit_in_2024.rs
2024-06-19 12:37:49 -04:00

13 lines
341 B
Rust

//@ compile-flags: --edition=2024 -Zunstable-options
//@ aux-build:expr_2021_implicit.rs
//@ check-pass
extern crate expr_2021_implicit;
// Makes sure that a `:expr` fragment matcher defined in a edition 2021 crate
// still parses like an `expr_2021` fragment matcher in a 2024 user crate.
expr_2021_implicit::m!(const {});
fn main() {}