rust/tests/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.rs
2023-01-11 09:32:08 +00:00

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() { }