]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/structs-enums/auxiliary/cci_class_cast.rs
6 pub how_hungry
: isize,
10 impl fmt
::Display
for cat
{
11 fn fmt(&self, f
: &mut fmt
::Formatter
) -> fmt
::Result
{
12 write
!(f
, "{}", self.name
)
20 if self.meows
% 5 == 0 {
28 pub fn speak(&mut self) { self.meow(); }
30 pub fn eat(&mut self) -> bool
{
31 if self.how_hungry
> 0 {
32 println
!("OM NOM NOM");
37 println
!("Not hungry!");
43 pub fn cat(in_x
: usize, in_y
: isize, in_name
: String
) -> cat
{