rust/tests/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
188 B
Rust
Raw Normal View History

2013-08-19 16:15:25 -05:00
// Basic test for traits inheriting from the builtin kinds.
2013-08-16 17:21:02 -05:00
trait Foo : Send { }
impl <T: Sync+'static> Foo for T { }
//~^ ERROR `T` cannot be sent between threads safely
2013-08-16 17:21:02 -05:00
fn main() { }