☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
auto_traits4.rs
☽
☼
gcc/testsuite/rust/compile/auto_traits4.rs
code
plain
raw
1
#![feature(optin_builtin_traits)]
2
3
unsafe auto trait Send {}
4
unsafe auto trait Sync {}
5
6
fn take_send(_: &dyn Send) {}
7
fn take_sync(_: &dyn Sync) {}
8
9
fn main() {
10
let a = i32;
11
12
take_send(&a);
13
take_sync(&a);
14
}