Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
closures
/
print
/
closure-print-generic-trim-off-verbose-2.rs
blob: 07bf8fe4c0076c3bb229cba2db4394a9bf7ebf81 [
file
] [
log
] [
blame
]
// compile-flags: -Ztrim-diagnostic-paths=off -Zverbose
mod
mod1
{
pub
fn
f
<
T
:
std
::
fmt
::
Display
>(
t
:
T
)
{
let
x
=
20
;
let
c
=
||
println
!(
"{} {}"
,
t
,
x
);
let
c1
:
()
=
c
;
//~^ ERROR mismatched types
}
}
fn
main
()
{
mod1
::
f
(
5i32
);
}