Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
bad
/
bad-method-typaram-kind.rs
blob: b088eae1c87025cc971c1589b656e3662dc79e0f [
file
] [
log
] [
blame
]
fn
foo
<
T
:
'
static
>()
{
1.bar
::<
T
>();
//~ ERROR `T` cannot be sent between threads safely
}
trait
Bar
{
fn
bar
<
T
:
Send
>(&
self
);
}
impl
Bar
for
usize
{
fn
bar
<
T
:
Send
>(&
self
)
{
}
}
fn
main
()
{}