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

10 lines
277 B
Rust
Raw Normal View History

2013-08-19 16:15:25 -05: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 17:21:02 -05: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 17:21:02 -05:00
fn main() { }