]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deriving/issue-3935.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[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 }