2018-08-30 07:18:55 -05:00
|
|
|
//@ run-pass
|
2016-03-01 23:58:04 -06:00
|
|
|
//@ aux-build:derive-no-std.rs
|
2014-09-07 16:57:26 -05:00
|
|
|
|
2016-03-01 23:58:04 -06:00
|
|
|
extern crate derive_no_std;
|
|
|
|
use derive_no_std::*;
|
2014-09-07 16:57:26 -05:00
|
|
|
|
2016-03-01 23:58:04 -06:00
|
|
|
fn main() {
|
|
|
|
let f = Foo { x: 0 };
|
|
|
|
assert_eq!(f.clone(), Foo::default());
|
2014-09-07 16:57:26 -05:00
|
|
|
|
2016-03-01 23:58:04 -06:00
|
|
|
assert!(Bar::Qux < Bar::Quux(42));
|
2014-09-07 16:57:26 -05:00
|
|
|
}
|