about summary refs log tree commit diff
path: root/src/test/ui/traits/inheritance/num0.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/traits/inheritance/num0.rs')
-rw-r--r--src/test/ui/traits/inheritance/num0.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/ui/traits/inheritance/num0.rs b/src/test/ui/traits/inheritance/num0.rs
deleted file mode 100644
index cee52542d38..00000000000
--- a/src/test/ui/traits/inheritance/num0.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-// run-pass
-#![allow(dead_code)]
-// Extending Num and using inherited static methods
-
-// pretty-expanded FIXME #23616
-
-use std::cmp::PartialOrd;
-
-pub trait NumCast: Sized {
-    fn from(i: i32) -> Option<Self>;
-}
-
-pub trait Num {
-    fn from_int(i: isize) -> Self;
-    fn gt(&self, other: &Self) -> bool;
-}
-
-pub trait NumExt: NumCast + PartialOrd { }
-
-fn greater_than_one<T:NumExt>(n: &T) -> bool {
-    n.gt(&NumCast::from(1).unwrap())
-}
-
-pub fn main() {}