mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
9 lines
188 B
Rust
9 lines
188 B
Rust
// Basic test for traits inheriting from the builtin kinds.
|
|
|
|
trait Foo : Send { }
|
|
|
|
impl <T: Sync+'static> Foo for T { }
|
|
//~^ ERROR `T` cannot be sent between threads safely
|
|
|
|
fn main() { }
|