]>
git.proxmox.com Git - rustc.git/blob - tests/ui/structs-enums/classes-simple-method.rs
3 #![allow(non_camel_case_types)]
12 pub fn speak(&mut self) {}
15 fn cat(in_x
: usize, in_y
: isize) -> cat
{
23 let mut nyan
: cat
= cat(52, 99);
24 let kitty
= cat(1000, 2);
25 assert_eq
!(nyan
.how_hungry
, 99);
26 assert_eq
!(kitty
.how_hungry
, 2);