rust/tests/ui/crashes/ice-7012.rs

18 lines
214 B
Rust
Raw Normal View History

2021-04-02 16:56:32 +00:00
#![allow(clippy::all)]
enum _MyOption {
None,
Some(()),
}
impl _MyOption {
fn _foo(&self) {
match self {
&Self::Some(_) => {},
_ => {},
}
}
}
fn main() {}