summary refs log tree commit diff
path: root/src/test/pretty/match-naked-expr-medium.rs
blob: a124fdff3900dfce3ac9cafa3b6c6bafd85aa629 (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()],
        };
}