rust/tests/target/issue-855.rs

28 lines
653 B
Rust
Raw Normal View History

fn main() {
'running: loop {
for event in event_pump.poll_iter() {
match event {
Event::Quit { .. } |
2017-07-03 04:54:26 -05:00
Event::KeyDown {
keycode: Some(Keycode::Escape),
..
} => break 'running,
}
}
}
}
fn main2() {
'running: loop {
for event in event_pump.poll_iter() {
match event {
Event::Quit { .. } |
2017-07-03 04:54:26 -05:00
Event::KeyDownXXXXXXXXXXXXX {
keycode: Some(Keycode::Escape),
..
} => break 'running,
}
}
}
}