blob: d64835393867455d814b93b02e473ebb701e2204 [file] [log] [blame]
// Test that we do not consider associated types to be sendable without
// some applicable trait bound (and we don't ICE).
trait Trait {
type AssocType;
fn dummy(&self) { }
}
fn bar<T:Trait+Send>() {
is_send::<T::AssocType>(); //~ ERROR E0277
}
fn is_send<T:Send>() {
}
fn main() { }