mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
13 lines
217 B
Rust
13 lines
217 B
Rust
// 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));
|
|
}
|