// We previously mentioned other extern types in the error message here. // // Two extern types shouldn't really be considered similar just // because they are both extern types. #![feature(extern_types)] extern { type ShouldNotBeMentioned; } extern { type Foo; } unsafe impl Send for ShouldNotBeMentioned {} fn assert_send() {} fn main() { assert_send::() //~^ ERROR `Foo` cannot be sent between threads safely }