1 error[E0425]: cannot find value `whiskers` in this scope
2 --> $DIR/issue-2356.rs:39:5
5 | --------------- a field by that name exists in `Self`
7 LL | whiskers -= other;
10 error[E0424]: expected value, found module `self`
11 --> $DIR/issue-2356.rs:65:8
14 | ---- this function doesn't have a `self` parameter
15 LL | if self.whiskers > 3 {
16 | ^^^^ `self` value is a keyword only available in methods with a `self` parameter
18 help: add a `self` receiver parameter to make the associated `fn` a method
23 error[E0425]: cannot find value `whiskers` in this scope
24 --> $DIR/issue-2356.rs:79:5
29 help: you might have meant to use the available field
31 LL | self.whiskers = 0;
34 error[E0425]: cannot find value `whiskers` in this scope
35 --> $DIR/issue-2356.rs:84:5
38 | --------------- a field by that name exists in `Self`
43 error[E0424]: expected value, found module `self`
44 --> $DIR/issue-2356.rs:92:5
47 | ---- this function can't have a `self` parameter
49 | ^^^^ `self` value is a keyword only available in methods with a `self` parameter
51 error[E0425]: cannot find function `shave` in this scope
52 --> $DIR/issue-2356.rs:17:5
55 | ^^^^^ not found in this scope
57 error[E0425]: cannot find function `clone` in this scope
58 --> $DIR/issue-2356.rs:24:5
63 help: you might have meant to call the method
68 error[E0425]: cannot find function `default` in this scope
69 --> $DIR/issue-2356.rs:31:5
74 help: you might have meant to call the associated function
79 error[E0425]: cannot find function `shave` in this scope
80 --> $DIR/issue-2356.rs:41:5
85 help: you might have meant to call the associated function
90 error[E0425]: cannot find function `purr` in this scope
91 --> $DIR/issue-2356.rs:43:5
94 | ^^^^ not found in this scope
96 error[E0425]: cannot find function `static_method` in this scope
97 --> $DIR/issue-2356.rs:52:9
100 | ^^^^^^^^^^^^^ not found in this scope
102 help: consider using the associated function on `Self`
104 LL | Self::static_method();
107 error[E0425]: cannot find function `purr` in this scope
108 --> $DIR/issue-2356.rs:54:9
111 | ^^^^ not found in this scope
113 error[E0425]: cannot find function `purr` in this scope
114 --> $DIR/issue-2356.rs:56:9
117 | ^^^^ not found in this scope
119 error[E0425]: cannot find function `purr` in this scope
120 --> $DIR/issue-2356.rs:58:9
123 | ^^^^ not found in this scope
125 error[E0425]: cannot find function `grow_older` in this scope
126 --> $DIR/issue-2356.rs:72:5
129 | ^^^^^^^^^^ not found in this scope
131 help: consider using the associated function on `Self`
133 LL | Self::grow_older();
136 error[E0425]: cannot find function `shave` in this scope
137 --> $DIR/issue-2356.rs:74:5
140 | ^^^^^ not found in this scope
142 error[E0425]: cannot find function `purr_louder` in this scope
143 --> $DIR/issue-2356.rs:86:5
146 | ^^^^^^^^^^^ not found in this scope
148 error: aborting due to 17 previous errors
150 Some errors have detailed explanations: E0424, E0425.
151 For more information about an error, try `rustc --explain E0424`.