Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
f97c37f8ae9a3bb9eed2d2fa812c01ac78b460fb
/
.
/
src
/
test
/
ui
/
issues
/
issue-5216.rs
blob: 35b343edfbdbe870c23a63f1828936983106b212 [
file
] [
log
] [
blame
]
fn
f
()
{
}
struct
S
(
Box
<
dyn
FnMut
()>);
pub
static
C
:
S
=
S
(
f
);
//~ ERROR mismatched types
fn
g
()
{
}
type
T
=
Box
<
dyn
FnMut
()>;
pub
static
D
:
T
=
g
;
//~ ERROR mismatched types
fn
main
()
{}