rust/tests/ui/pattern/rfc-3627-match-ergonomics-2024/auxiliary/migration_lint_macros.rs
2024-11-22 11:12:15 -08:00

11 lines
338 B
Rust

//@ edition: 2024
// This contains a binding in edition 2024, so if matched with a reference binding mode it will end
// up with a `mut ref mut` binding mode. We use this to test the migration lint on patterns with
// mixed editions.
#[macro_export]
macro_rules! mixed_edition_pat {
($foo:ident) => {
Some(mut $foo)
};
}