2013-08-19 17:15:25 -04:00
|
|
|
// Basic test for traits inheriting from the builtin kinds.
|
|
|
|
|
2013-08-16 18:21:02 -04:00
|
|
|
trait Foo : Send { }
|
|
|
|
|
2018-06-09 16:53:36 -07:00
|
|
|
impl <T: Sync+'static> Foo for T { }
|
|
|
|
//~^ ERROR `T` cannot be sent between threads safely
|
2013-08-16 18:21:02 -04:00
|
|
|
|
|
|
|
fn main() { }
|