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-22 20:41:15 +00:00
//
// Testing that unsafe blocks in match arms are followed by a comma
// pp-exact
fn main() {
match true {
true if true => (),
2021-12-01 19:45:14 +00:00
false if false => unsafe {},
true => {}
2014-11-22 20:41:15 +00:00
false => (),
}
}