]> git.lizzy.rs Git - rust.git/blob - tests/pretty/match-naked-expr-medium.rs
Add ~const bounds trait bounds when using derive_const
[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 }