]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/alias/cross-crate.rs
1 // aux-build:send_sync.rs
3 #![feature(trait_alias)]
5 extern crate send_sync
;
8 use send_sync
::SendSync
;
10 fn use_alias
<T
: SendSync
>() {}
14 use_alias
::<Rc
<u32>>();
15 //~^ ERROR `Rc<u32>` cannot be sent between threads safely [E0277]
16 //~^^ ERROR `Rc<u32>` cannot be shared between threads safely [E0277]