2013-08-19 17:15:25 -04:00
|
|
|
// Basic test for traits inheriting from the builtin kinds, checking
|
|
|
|
// the type contents of the implementing type (that's not a typaram).
|
|
|
|
|
2013-08-16 18:21:02 -04:00
|
|
|
trait Foo : Send { }
|
|
|
|
|
2015-02-17 23:48:32 +11:00
|
|
|
impl Foo for std::rc::Rc<i8> { }
|
2020-09-02 10:40:56 +03:00
|
|
|
//~^ ERROR `Rc<i8>` cannot be sent between threads safely
|
2013-08-16 18:21:02 -04:00
|
|
|
|
|
|
|
fn main() { }
|