11 lines
238 B
Rust
11 lines
238 B
Rust
|
#[deriving_eq]
|
||
|
struct Point { x : int }
|
||
|
|
||
|
fn main() {
|
||
|
assert_eq!(14,14);
|
||
|
assert_eq!(~"abc",~"abc");
|
||
|
assert_eq!(~Point{x:34},~Point{x:34});
|
||
|
assert_eq!(&Point{x:34},&Point{x:34});
|
||
|
assert_eq!(@Point{x:34},@Point{x:34});
|
||
|
}
|