]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deriving/issue-3935.rs
Merge commit '370c397ec9169809e5ad270079712e0043514240' into sync_cg_clif-2022-03-20
[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 }