summaryrefslogtreecommitdiffstats
path: root/src/test/pretty/match-naked-expr-medium.rs
blob: 836af99002d65cd0282c00c8f1b52944e6b8530d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// pp-exact

fn main() {
    let x = Some(3);
    let _y =
        match x {
            Some(_) =>
                ["some(_)".to_string(), "not".to_string(), "SO".to_string(),
                        "long".to_string(), "string".to_string()],
            None =>
                ["none".to_string(), "a".to_string(), "a".to_string(),
                        "a".to_string(), "a".to_string()],
        };
}