summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/auxiliary/cci_class_5.rs
blob: 3aeaa83d30a359c71c0817a744b103fc35532279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod kitties {
    pub struct cat {
        meows : usize,
        pub how_hungry : isize,
    }

    impl cat {
        fn nap(&self) {}
    }

    pub fn cat(in_x : usize, in_y : isize) -> cat {
        cat {
            meows: in_x,
            how_hungry: in_y
        }
    }
}