]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/trait-inheritance-num0.rs
Make RFC 1214 warnings into errors, and rip out the "warn or err"
[rust.git] / src / test / run-pass / trait-inheritance-num0.rs
index 83c2a9ad33926281c369c1729ded5099dc684254..70515a088e2de597ba2589d16806f43c702671c2 100644 (file)
@@ -16,7 +16,7 @@
 
 use std::cmp::PartialOrd;
 
-pub trait NumCast {
+pub trait NumCast: Sized {
     fn from(i: i32) -> Option<Self>;
 }