// This should emit the less confusing error, not the more confusing one.
-fn foo(_x: Foo:Send) { //~ERROR reference to trait `Foo` where a type is expected
+fn foo(_x: Foo + Send) {
+ //~^ERROR the trait `core::kinds::Sized` is not implemented
}
fn main() { }