]> git.lizzy.rs Git - rust.git/blob - tests/source/pattern.rs
Format some patterns
[rust.git] / tests / source / pattern.rs
1 fn main() {
2     let z = match x {
3         "pat1" => 1,
4         ( ref  x, ref  mut  y /*comment*/) => 2,
5     };
6
7     if let <  T as  Trait   > :: CONST = ident {
8         do_smth();
9     }
10
11     let Some ( ref   xyz  /*   comment!   */) = opt;
12
13     if let  None  =   opt2 { panic!("oh noes"); }
14 }