]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/trait-inheritance-num1.rs
Make RFC 1214 warnings into errors, and rip out the "warn or err"
[rust.git] / src / test / run-pass / trait-inheritance-num1.rs
index 14a6a9a0c664ce1fd1c5f61526db25c0ced5e6b3..e21abdae730bcc433c80488a44779fcbd5127bb5 100644 (file)
@@ -10,7 +10,7 @@
 
 // pretty-expanded FIXME #23616
 
-pub trait NumCast {
+pub trait NumCast: Sized {
     fn from(i: i32) -> Option<Self>;
 }