]> git.proxmox.com Git - rustc.git/blob - vendor/derive_more/tests/add.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / vendor / derive_more / tests / add.rs
1 #![allow(dead_code)]
2 #[macro_use]
3 extern crate derive_more;
4
5 #[derive(Add)]
6 struct MyInts(i32, i32);
7
8 #[derive(Add)]
9 struct Point2D {
10 x: i32,
11 y: i32,
12 }
13
14 #[derive(Add)]
15 enum MixedInts {
16 SmallInt(i32),
17 BigInt(i64),
18 TwoSmallInts(i32, i32),
19 NamedSmallInts { x: i32, y: i32 },
20 UnsignedOne(u32),
21 UnsignedTwo(u32),
22 Unit,
23 }