]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/trait-bounds-not-on-bare-trait.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / test / compile-fail / trait-bounds-not-on-bare-trait.rs
index d7c98ec4e9d242bc3ac556c5ddbeebc872e6dd90..85a2761172d6136d6973d940217826eabeb99be2 100644 (file)
@@ -13,7 +13,8 @@ trait Foo {
 
 // 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() { }