summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/auxiliary/issue-31702-1.rs
blob: a48d0dc2c644761bcc08ced31d702412309e2299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Copy)]
pub struct U256(pub [u64; 4]);

impl Clone for U256 {
    fn clone(&self) -> U256 {
        *self
    }
}

impl U256 {
    pub fn new(value: u64) -> U256 {
        let mut ret = [0; 4];
        ret[0] = value;
        U256(ret)
    }
}