Sign in
◑
Theme
rust
/
rust
/
ea997df88e4e1b04a0f7dfdabda67e2a5ba4af6f
/
.
/
src
/
tools
/
rustfmt
/
tests
/
source
/
issue_6121.rs
blob: bb5b4d5e2dac95fec27bd7b4bdc040e1822d8bfe [
file
]
//@ rustfmt-use_try_shorthand: true
fn
main
()
{
let
e
:
Result
<(),
&
str
>
=
Ok
(());
let
_e
=
e
// hello comment
.
map_err
(|
_
|
"This is an error message"
)
// Hello comment - Fails to format
.
map
(|
_
|
());
println
!(
"Hello, world!"
);
}