]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/match-naked-expr-medium.rs
Rollup merge of #69209 - Mark-Simulacrum:strip-unsafe, r=dtolnay
[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 }