mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-13 15:33:53 +00:00
![Jules Bertholet](/assets/img/avatar_default.png)
Unfortunately, we can't always offer a machine-applicable suggestion when there are subpatterns from macro expansion. Co-Authored-By: Guillaume Boisseau <Nadrieril@users.noreply.github.com>
13 lines
377 B
Rust
13 lines
377 B
Rust
//@ edition: 2024
|
|
//@ compile-flags: -Z unstable-options
|
|
|
|
// 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)
|
|
};
|
|
}
|