aboutsummaryrefslogtreecommitdiff
path: root/src/sign.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sign.rs')
-rw-r--r--src/sign.rs13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/sign.rs b/src/sign.rs
index 26d44c5..5c32071 100644
--- a/src/sign.rs
+++ b/src/sign.rs
@@ -213,13 +213,12 @@ fn unsigned_wrapping_is_unsigned() {
fn require_unsigned<T: Unsigned>(_: &T) {}
require_unsigned(&Wrapping(42_u32));
}
-/*
+
// Commenting this out since it doesn't compile on Rust 1.8,
// because on this version Wrapping doesn't implement Neg and therefore can't
// implement Signed.
-#[test]
-fn signed_wrapping_is_signed() {
- fn require_signed<T: Signed>(_: &T) {}
- require_signed(&Wrapping(-42));
-}
-*/
+// #[test]
+// fn signed_wrapping_is_signed() {
+// fn require_signed<T: Signed>(_: &T) {}
+// require_signed(&Wrapping(-42));
+// }