summary refs log tree commit diff
path: root/src/test/run-pass/deriving/derive-no-std.rs
blob: 22edd3eed5926e2497c3868416c6b5f1937746c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass
// aux-build:derive-no-std.rs

extern crate derive_no_std;
use derive_no_std::*;

fn main() {
    let f = Foo { x: 0 };
    assert_eq!(f.clone(), Foo::default());

    assert!(Bar::Qux < Bar::Quux(42));
}