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