1 // Test for traits that inherit from multiple builtin kinds at once,
2 // testing that all such kinds must be present on implementing types.
4 trait Foo : Send+Sync { }
6 impl <T: Sync+'static> Foo for (T,) { }
7 //~^ ERROR `T` cannot be sent between threads safely [E0277]
9 impl <T: Send> Foo for (T,T) { }
10 //~^ ERROR `T` cannot be shared between threads safely [E0277]
12 impl <T: Send+Sync> Foo for (T,T,T) { } // (ok)