Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-11515.rs
blob: a7671b9282a9976ffebb7684878343be69f7bce8 [
file
] [
log
] [
blame
]
#![
feature
(
box_syntax
)]
struct
Test
{
func
:
Box
<
dyn
FnMut
()
+
'
static
>
}
fn
main
()
{
let
closure
:
Box
<
dyn
Fn
()
+
'
static
>
=
Box
::
new
(||
());
let
test
=
box
Test
{
func
:
closure
};
//~ ERROR mismatched types
}