summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-855.rs
blob: 0430cc6295485ba73e234e725418c02ab2157fb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
fn main() {
    'running: loop {
        for event in event_pump.poll_iter() {
            match event {
                Event::Quit { .. }
                | Event::KeyDown {
                    keycode: Some(Keycode::Escape),
                    ..
                } => break 'running,
            }
        }
    }
}

fn main2() {
    'running: loop {
        for event in event_pump.poll_iter() {
            match event {
                Event::Quit { .. }
                | Event::KeyDownXXXXXXXXXXXXX {
                    keycode: Some(Keycode::Escape),
                    ..
                } => break 'running,
            }
        }
    }
}