rust/src/test/ui/builtin-superkinds/builtin-superkinds-simple.rs

10 lines
277 B
Rust
Raw Normal View History

2013-08-19 21:15:25 +00: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 22:21:02 +00:00
trait Foo : Send { }
impl Foo for std::rc::Rc<i8> { }
//~^ ERROR `std::rc::Rc<i8>` cannot be sent between threads safely
2013-08-16 22:21:02 +00:00
fn main() { }