]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deriving/issue-3935.rs
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[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 }