Sign in
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
auto_traits4.rs
blob: f1cd1e4dd16d34ccebfea8b44e392c58b99cb561 [
file
] [
log
] [
blame
]
#![
feature
(
optin_builtin_traits
)]
unsafe
auto
trait
Send
{}
unsafe
auto
trait
Sync
{}
fn
take_send
(
_
:
&
dyn
Send
)
{}
fn
take_sync
(
_
:
&
dyn
Sync
)
{}
fn
main
()
{
let
a
=
i32
;
take_send
(&
a
);
take_sync
(&
a
);
}