From cf429890198e2ba460be846982b1eb60d4ebfaa6 Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Wed, 14 May 2014 16:53:23 -0700 Subject: [PATCH] num: have Num inherit from Clone A numeric type which can't be cloned is nonsense. If this weren't used for BigInt etc, it could even be Copy. --- src/libcore/num/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 22411fef3b268..22410af853c0a 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -24,7 +24,7 @@ use ops::{Not, BitAnd, BitOr, BitXor, Shl, Shr}; use option::{Option, Some, None}; /// The base trait for numeric types -pub trait Num: Eq + Zero + One +pub trait Num: Eq + Zero + One + Clone + Neg + Add + Sub