summaryrefslogtreecommitdiffstats
path: root/tests/pretty/match-naked-expr.rs
blob: 7c16bbefe3c26247a7d7ffac65942de2ab8d2b60 (plain)
1
2
3
4
5
6
7
8
9
10
// pp-exact

fn main() {
    let x = Some(3);
    let _y =
        match x {
            Some(_) => "some(_)".to_string(),
            None => "none".to_string(),
        };
}