This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2024-11-26 16:54:01 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
b9cd5eb190
rust
/
tests
/
pretty
/
match-block-expr.rs
7 lines
103 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives
2024-02-22 12:10:29 +00:00
//@ pp-exact
Fix a bug pretty printing `match { 5i } { _ => { } }` This also always puts a trailing comma on the last non-block expr.
2014-07-28 01:05:07 +00:00
fn
main
(
)
{
Remove all `i` suffixes
2015-01-25 21:05:03 +00:00
let
x
=
match
{
5
}
{
1
=
>
5
,
2
=
>
6
,
_
=
>
7
,
}
;
pprust: Do not print spaces before some tokens
2019-08-25 17:41:52 +00: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-28 01:05:07 +00:00
}
Reference in New Issue
Copy Permalink