Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
builtin-superkinds
/
builtin-superkinds-typaram-not-send.rs
blob: 74ae62711ebcf8ad5021cd53fb4e3c53e34ac02b [
file
] [
log
] [
blame
]
// Basic test for traits inheriting from the builtin kinds.
trait
Foo
:
Send
{
}
impl
<
T
:
Sync
+
'
static
>
Foo
for
T
{
}
//~^ ERROR `T` cannot be sent between threads safely
fn
main
()
{
}