blob: 376819485482e16217f4b9f08c3cdfad0eece472 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//@ aux-build:send_sync.rs
#![feature(trait_alias)]
extern crate send_sync;
use std::rc::Rc;
use send_sync::SendSync;
fn use_alias<T: SendSync>() {}
fn main() {
use_alias::<u32>();
use_alias::<Rc<u32>>();
//~^ ERROR the trait bound `Rc<u32>: SendSync` is not satisfied [E0277]
//~| ERROR the trait bound `Rc<u32>: SendSync` is not satisfied [E0277]
}
|