mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
14 lines
352 B
Rust
14 lines
352 B
Rust
// This code crashed because a `if` followed by a `!` was considered a macro,
|
|
// creating an invalid class stack.
|
|
// Regression test for <https://github.com/rust-lang/rust/issues/148617>.
|
|
|
|
//@ compile-flags: -Zunstable-options --generate-macro-expansion
|
|
|
|
enum Enum {
|
|
Variant,
|
|
}
|
|
|
|
pub fn repro() {
|
|
if !matches!(Enum::Variant, Enum::Variant) {}
|
|
}
|