]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-20005.rs
Make RFC 1214 warnings into errors, and rip out the "warn or err"
[rust.git] / src / test / compile-fail / issue-20005.rs
index 041289c2ccdbdb4af3393b0e526e89c61cf3e6f4..aaf27ba527b18fb936fa49db9a246dd4bc4f380e 100644 (file)
@@ -15,13 +15,10 @@ trait From<Src> {
 }
 
 trait To {
-    fn to<Dst>(
-        self //~ error: the trait `core::marker::Sized` is not implemented
+    fn to<Dst>(  //~ ERROR the trait `core::marker::Sized` is not implemented
+        self
     ) -> <Dst as From<Self>>::Result where Dst: From<Self> {
-        From::from( //~ error: the trait `core::marker::Sized` is not implemented
-            //~^ ERROR E0277
-            self
-        )
+        From::from(self)
     }
 }