Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
typeck
/
closure-ty-mismatch-issue-128561.rs
blob: 589a90e71d6ec1d2812c3141fd46ff09331812c7 [
file
] [
log
] [
blame
]
fn
main
()
{
b
"abc"
.
iter
().
for_each
(|
x
|
x
);
//~ ERROR: mismatched types
b
"abc"
.
iter
().
for_each
(|
x
|
dbg
!(
x
));
//~ ERROR: mismatched types
b
"abc"
.
iter
().
for_each
(|
x
|
{
println
!(
"{}"
,
x
);
x
//~ ERROR: mismatched types
})
}