2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2014-12-31 17:32:49 +13:00
|
|
|
#[derive(PartialEq)]
|
2013-01-10 14:37:59 -08:00
|
|
|
struct Bike {
|
2014-05-22 16:57:53 -07:00
|
|
|
name: String,
|
2013-01-10 14:37:59 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {
|
2014-05-25 03:17:19 -07:00
|
|
|
let town_bike = Bike { name: "schwinn".to_string() };
|
|
|
|
let my_bike = Bike { name: "surly".to_string() };
|
2013-01-10 14:37:59 -08:00
|
|
|
|
2013-03-28 18:39:09 -07:00
|
|
|
assert!(town_bike != my_bike);
|
2013-01-10 14:37:59 -08:00
|
|
|
}
|