Fix fallout from change, adding explicit Sized annotations where necessary.

This commit is contained in:
Niko Matsakis
2014-12-18 15:27:41 -05:00
parent 1f887c8c57
commit 1b3734f8ae
14 changed files with 62 additions and 20 deletions

View File

@@ -980,7 +980,7 @@ impl_to_primitive_float! { f64 }
/// A generic trait for converting a number to a value.
#[experimental = "trait is likely to be removed"]
pub trait FromPrimitive {
pub trait FromPrimitive : ::kinds::Sized {
/// Convert an `int` to return an optional value of this type. If the
/// value cannot be represented by this value, the `None` is returned.
#[inline]