rust/tests/pretty/issue-19077.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
225 B
Rust
Raw Normal View History

2014-11-23 04:41:15 +08:00
//
// Testing that unsafe blocks in match arms are followed by a comma
// pp-exact
fn main() {
match true {
true if true => (),
2021-12-02 03:45:14 +08:00
false if false => unsafe {},
true => {}
2014-11-23 04:41:15 +08:00
false => (),
}
}