This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
14e59bb317c3c901bce83deb16ee9bfa5cc90e28
rust
/
tests
/
pretty
/
match-block-expr.rs
7 lines
102 B
Rust
Raw
Normal View
History
Unescape
Escape
Fix a bug pretty printing `match { 5i } { _ => { } }` This also always puts a trailing comma on the last non-block expr.
2014-07-27 18:05:07 -07:00
// pp-exact
fn
main
(
)
{
Remove all `i` suffixes
2015-01-25 22:05:03 +01:00
let
x
=
match
{
5
}
{
1
=
>
5
,
2
=
>
6
,
_
=
>
7
,
}
;
pprust: Do not print spaces before some tokens
2019-08-25 20:41:52 +03:00
assert_eq!
(
x
,
7
)
;
Fix a bug pretty printing `match { 5i } { _ => { } }` This also always puts a trailing comma on the last non-block expr.
2014-07-27 18:05:07 -07:00
}
Reference in New Issue
Copy Permalink