]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deriving/issue-3935.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / test / ui / deriving / issue-3935.rs
1 // run-pass
2
3 #[derive(PartialEq)]
4 struct Bike {
5     name: String,
6 }
7
8 pub fn main() {
9     let town_bike = Bike { name: "schwinn".to_string() };
10     let my_bike = Bike { name: "surly".to_string() };
11
12     assert!(town_bike != my_bike);
13 }