Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-40827.rs
blob: 6e42c5061695e781c715ae0af81e5cec826c0b92 [
file
] [
log
] [
blame
]
use
std
::
rc
::
Rc
;
use
std
::
sync
::
Arc
;
struct
Foo
(
Arc
<
Bar
>);
enum
Bar
{
A
(
Rc
<
Foo
>),
B
(
Option
<
Foo
>),
}
fn
f
<
T
:
Send
>(
_
:
T
)
{}
fn
main
()
{
f
(
Foo
(
Arc
::
new
(
Bar
::
B
(
None
))));
//~^ ERROR E0277
//~| ERROR E0277
}