blob: f1cd1e4dd16d34ccebfea8b44e392c58b99cb561 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#![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);
}
|