1 error[E0425]: cannot find function `default` in this scope
2 --> $DIR/issue-2356.rs:31:5
7 help: you might have meant to call the associated function
11 help: consider importing this function
13 LL | use std::default::default;
16 error[E0425]: cannot find value `whiskers` in this scope
17 --> $DIR/issue-2356.rs:39:5
19 LL | whiskers -= other;
20 | ^^^^^^^^ a field by this name exists in `Self`
22 error[E0424]: expected value, found module `self`
23 --> $DIR/issue-2356.rs:65:8
26 | ---- this function doesn't have a `self` parameter
27 LL | if self.whiskers > 3 {
28 | ^^^^ `self` value is a keyword only available in methods with a `self` parameter
30 help: add a `self` receiver parameter to make the associated `fn` a method
35 error[E0425]: cannot find value `whiskers` in this scope
36 --> $DIR/issue-2356.rs:79:5
39 | ^^^^^^^^ help: you might have meant to use the available field: `self.whiskers`
41 error[E0425]: cannot find value `whiskers` in this scope
42 --> $DIR/issue-2356.rs:84:5
45 | ^^^^^^^^ a field by this name exists in `Self`
47 error[E0424]: expected value, found module `self`
48 --> $DIR/issue-2356.rs:92:5
51 | ---- this function can't have a `self` parameter
53 | ^^^^ `self` value is a keyword only available in methods with a `self` parameter
55 error[E0425]: cannot find function `shave` in this scope
56 --> $DIR/issue-2356.rs:17:5
59 | ^^^^^ not found in this scope
61 error[E0425]: cannot find function `clone` in this scope
62 --> $DIR/issue-2356.rs:24:5
65 | ^^^^^ help: you might have meant to call the method: `self.clone`
67 error[E0425]: cannot find function `shave` in this scope
68 --> $DIR/issue-2356.rs:41:5
71 | ^^^^^ help: you might have meant to call the associated function: `Self::shave`
73 error[E0425]: cannot find function `purr` in this scope
74 --> $DIR/issue-2356.rs:43:5
77 | ^^^^ not found in this scope
79 error[E0425]: cannot find function `static_method` in this scope
80 --> $DIR/issue-2356.rs:52:9
83 | ^^^^^^^^^^^^^ not found in this scope
85 help: consider using the associated function
87 LL | Self::static_method();
90 error[E0425]: cannot find function `purr` in this scope
91 --> $DIR/issue-2356.rs:54:9
94 | ^^^^ not found in this scope
96 error[E0425]: cannot find function `purr` in this scope
97 --> $DIR/issue-2356.rs:56:9
100 | ^^^^ not found in this scope
102 error[E0425]: cannot find function `purr` in this scope
103 --> $DIR/issue-2356.rs:58:9
106 | ^^^^ not found in this scope
108 error[E0425]: cannot find function `grow_older` in this scope
109 --> $DIR/issue-2356.rs:72:5
112 | ^^^^^^^^^^ not found in this scope
114 help: consider using the associated function
116 LL | Self::grow_older();
119 error[E0425]: cannot find function `shave` in this scope
120 --> $DIR/issue-2356.rs:74:5
123 | ^^^^^ not found in this scope
125 error[E0425]: cannot find function `purr_louder` in this scope
126 --> $DIR/issue-2356.rs:86:5
129 | ^^^^^^^^^^^ not found in this scope
131 error: aborting due to 17 previous errors
133 Some errors have detailed explanations: E0424, E0425.
134 For more information about an error, try `rustc --explain E0424`.