// 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; try `~Foo` or `&Foo`
+fn foo(_x: Foo + Send) {
+ //~^ERROR the trait `core::kinds::Sized` is not implemented
}
fn main() { }