]> git.lizzy.rs Git - rust.git/blob - tests/source/loop.rs
Format while loops, including labels
[rust.git] / tests / source / loop.rs
1
2 fn main() {
3     loop    
4     {   return some_val;}
5
6 let x = loop { do_forever(); };
7
8        'label :  loop {
9         // Just comments
10     }
11
12     'a: while loooooooooooooooooooooooooooooooooong_variable_name + another_value > some_other_value{}
13
14    while aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa > bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb {
15    }
16 }