mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-14 23:22:30 +00:00
10 lines
268 B
Rust
10 lines
268 B
Rust
// Basic test for traits inheriting from the builtin kinds, checking
|
|
// the type contents of the implementing type (that's not a typaram).
|
|
|
|
trait Foo : Send { }
|
|
|
|
impl Foo for std::rc::Rc<i8> { }
|
|
//~^ ERROR `Rc<i8>` cannot be sent between threads safely
|
|
|
|
fn main() { }
|