rust/tests/ui/deriving/derive-no-std.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
219 B
Rust
Raw Normal View History

//@ 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));
}