Sign in
fuchsia
/
third_party
/
rust
/
f233a4c18bec906dab0b8531f326a15fadece547
/
.
/
src
/
test
/
ui
/
closures
/
closure-bounds-cant-promote-superkind-in-struct.rs
blob: 039cf3e04648a16a0a4a084d16434e20e58f3497 [
file
] [
log
] [
blame
]
struct
X
<
F
>
where F
:
FnOnce
()
+
'
static
+
Send
{
field
:
F
,
}
fn
foo
<
F
>(
blk
:
F
)
->
X
<
F
>
where F
:
FnOnce
()
+
'
static
{
//~^ ERROR `F` cannot be sent between threads safely
return
X
{
field
:
blk
};
}
fn
main
()
{
}