]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice-7012.rs
Merge remote-tracking branch 'upstream/master' into rustup
[rust.git] / tests / ui / crashes / ice-7012.rs
1 #![allow(clippy::all)]
2
3 enum _MyOption {
4     None,
5     Some(()),
6 }
7
8 impl _MyOption {
9     fn _foo(&self) {
10         match self {
11             &Self::Some(_) => {},
12             _ => {},
13         }
14     }
15 }
16
17 fn main() {}