]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/match-naked-expr-medium.rs
Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup
[rust.git] / src / test / pretty / match-naked-expr-medium.rs
1 // pp-exact
2
3 fn main() {
4     let x = Some(3);
5     let _y =
6         match x {
7             Some(_) =>
8                 ["some(_)".to_string(), "not".to_string(), "SO".to_string(),
9                         "long".to_string(), "string".to_string()],
10             None =>
11                 ["none".to_string(), "a".to_string(), "a".to_string(),
12                         "a".to_string(), "a".to_string()],
13         };
14 }