about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-7012.rs
blob: 48c1c5a98d40a7014ea2d67d2713b89fe835a1f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//@ check-pass

#![expect(clippy::single_match)]

enum _MyOption {
    None,
    Some(()),
}

impl _MyOption {
    fn _foo(&self) {
        match self {
            &Self::Some(_) => {},
            _ => {},
        }
    }
}

fn main() {}