]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/inheritance/num.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / traits / inheritance / num.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(unused_variables)]
4 // pretty-expanded FIXME #23616
5
6 pub trait NumExt: PartialEq + PartialOrd {}
7
8 pub trait FloatExt: NumExt {}
9
10 fn greater_than_one<T: NumExt>(n: &T) -> bool { loop {} }
11 fn greater_than_one_float<T: FloatExt>(n: &T) -> bool { loop {} }
12
13 pub fn main() {}