]> git.lizzy.rs Git - rust.git/blob - tests/pretty/match-naked-expr-medium.rs
Rollup merge of #107596 - Kobzol:stage-build-timer, r=Mark-Simulacrum
[rust.git] / tests / 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 }