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 14:41:15 -06: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 13:45:14 -06:00
false if false => unsafe {},
true => {}
2014-11-22 14:41:15 -06:00
false => (),
}
}