2 fn shave(other: usize);
16 // If this provides a suggestion, it's a bug as MaybeDog doesn't impl Groom
18 //~^ ERROR cannot find function `shave`
23 fn clone(&self) -> Self {
25 //~^ ERROR cannot find function `clone`
29 impl Default for Cat {
30 fn default() -> Self {
32 //~^ ERROR cannot find function `default` in this scope [E0425]
38 fn shave(other: usize) {
40 //~^ ERROR cannot find value `whiskers`
42 //~^ ERROR cannot find function `shave`
44 //~^ ERROR cannot find function `purr`
53 //~^ ERROR cannot find function `static_method`
55 //~^ ERROR cannot find function `purr`
57 //~^ ERROR cannot find function `purr`
59 //~^ ERROR cannot find function `purr`
65 if self.whiskers > 3 {
66 //~^ ERROR expected value, found module `self`
73 //~^ ERROR cannot find function `grow_older`
75 //~^ ERROR cannot find function `shave`
78 fn burn_whiskers(&mut self) {
80 //~^ ERROR cannot find value `whiskers`
83 pub fn grow_older(other:usize) {
85 //~^ ERROR cannot find value `whiskers`
87 //~^ ERROR cannot find function `purr_louder`
93 //~^ ERROR expected value, found module `self`