]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deriving/issue-3935.rs
Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt
[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 }