]> git.lizzy.rs Git - rust.git/blob - tests/ui/builtin-superkinds/builtin-superkinds-simple.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / builtin-superkinds / builtin-superkinds-simple.rs
1 // Basic test for traits inheriting from the builtin kinds, checking
2 // the type contents of the implementing type (that's not a typaram).
3
4 trait Foo : Send { }
5
6 impl Foo for std::rc::Rc<i8> { }
7 //~^ ERROR `Rc<i8>` cannot be sent between threads safely
8
9 fn main() { }