2018-08-30 12:18:55 +00:00
|
|
|
// run-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
2015-03-22 20:13:15 +00:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-04-18 05:12:20 +00:00
|
|
|
pub trait NumExt: PartialEq + PartialOrd {}
|
2012-11-28 20:34:30 +00:00
|
|
|
|
2014-01-08 11:57:31 +00:00
|
|
|
pub trait FloatExt: NumExt {}
|
2012-11-28 20:34:30 +00:00
|
|
|
|
2015-04-18 05:12:20 +00:00
|
|
|
fn greater_than_one<T: NumExt>(n: &T) -> bool { loop {} }
|
|
|
|
fn greater_than_one_float<T: FloatExt>(n: &T) -> bool { loop {} }
|
2012-11-28 20:34:30 +00:00
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {}
|