1
Fork 0

Change std::kinds to std::markers; flatten std::kinds::marker

[breaking-change]
This commit is contained in:
Nick Cameron 2015-01-06 14:03:46 +13:00
parent 6539cb417f
commit 503709708c
154 changed files with 635 additions and 623 deletions

View file

@ -8,17 +8,17 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::kinds::marker;
use std::markers;
struct Foo {
a: int,
ns: marker::NoSend
ns: markers::NoSend
}
fn bar<T: Send>(_: T) {}
fn main() {
let x = Foo { a: 5, ns: marker::NoSend };
let x = Foo { a: 5, ns: markers::NoSend };
bar(x);
//~^ ERROR the trait `core::kinds::Send` is not implemented
//~^ ERROR the trait `core::markers::Send` is not implemented
}