]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-2356.stderr
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / resolve / issue-2356.stderr
1 error[E0425]: cannot find function `default` in this scope
2   --> $DIR/issue-2356.rs:31:5
3    |
4 LL |     default();
5    |     ^^^^^^^
6    |
7 help: you might have meant to call the associated function
8    |
9 LL |     Self::default();
10    |     ~~~~~~~~~~~~~
11 help: consider importing this function
12    |
13 LL | use std::default::default;
14    |
15
16 error[E0425]: cannot find value `whiskers` in this scope
17   --> $DIR/issue-2356.rs:39:5
18    |
19 LL |     whiskers -= other;
20    |     ^^^^^^^^ a field by this name exists in `Self`
21
22 error[E0424]: expected value, found module `self`
23   --> $DIR/issue-2356.rs:65:8
24    |
25 LL |   fn meow() {
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
29    |
30 help: add a `self` receiver parameter to make the associated `fn` a method
31    |
32 LL |   fn meow(&self) {
33    |           +++++
34
35 error[E0425]: cannot find value `whiskers` in this scope
36   --> $DIR/issue-2356.rs:79:5
37    |
38 LL |     whiskers = 0;
39    |     ^^^^^^^^ help: you might have meant to use the available field: `self.whiskers`
40
41 error[E0425]: cannot find value `whiskers` in this scope
42   --> $DIR/issue-2356.rs:84:5
43    |
44 LL |     whiskers = 4;
45    |     ^^^^^^^^ a field by this name exists in `Self`
46
47 error[E0424]: expected value, found module `self`
48   --> $DIR/issue-2356.rs:92:5
49    |
50 LL | fn main() {
51    |    ---- this function can't have a `self` parameter
52 LL |     self += 1;
53    |     ^^^^ `self` value is a keyword only available in methods with a `self` parameter
54
55 error[E0425]: cannot find function `shave` in this scope
56   --> $DIR/issue-2356.rs:17:5
57    |
58 LL |     shave();
59    |     ^^^^^ not found in this scope
60
61 error[E0425]: cannot find function `clone` in this scope
62   --> $DIR/issue-2356.rs:24:5
63    |
64 LL |     clone();
65    |     ^^^^^ help: you might have meant to call the method: `self.clone`
66
67 error[E0425]: cannot find function `shave` in this scope
68   --> $DIR/issue-2356.rs:41:5
69    |
70 LL |     shave(4);
71    |     ^^^^^ help: you might have meant to call the associated function: `Self::shave`
72
73 error[E0425]: cannot find function `purr` in this scope
74   --> $DIR/issue-2356.rs:43:5
75    |
76 LL |     purr();
77    |     ^^^^ not found in this scope
78
79 error[E0425]: cannot find function `static_method` in this scope
80   --> $DIR/issue-2356.rs:52:9
81    |
82 LL |         static_method();
83    |         ^^^^^^^^^^^^^ not found in this scope
84    |
85 help: consider using the associated function
86    |
87 LL |         Self::static_method();
88    |         ++++++
89
90 error[E0425]: cannot find function `purr` in this scope
91   --> $DIR/issue-2356.rs:54:9
92    |
93 LL |         purr();
94    |         ^^^^ not found in this scope
95
96 error[E0425]: cannot find function `purr` in this scope
97   --> $DIR/issue-2356.rs:56:9
98    |
99 LL |         purr();
100    |         ^^^^ not found in this scope
101
102 error[E0425]: cannot find function `purr` in this scope
103   --> $DIR/issue-2356.rs:58:9
104    |
105 LL |         purr();
106    |         ^^^^ not found in this scope
107
108 error[E0425]: cannot find function `grow_older` in this scope
109   --> $DIR/issue-2356.rs:72:5
110    |
111 LL |     grow_older();
112    |     ^^^^^^^^^^ not found in this scope
113    |
114 help: consider using the associated function
115    |
116 LL |     Self::grow_older();
117    |     ++++++
118
119 error[E0425]: cannot find function `shave` in this scope
120   --> $DIR/issue-2356.rs:74:5
121    |
122 LL |     shave();
123    |     ^^^^^ not found in this scope
124
125 error[E0425]: cannot find function `purr_louder` in this scope
126   --> $DIR/issue-2356.rs:86:5
127    |
128 LL |     purr_louder();
129    |     ^^^^^^^^^^^ not found in this scope
130
131 error: aborting due to 17 previous errors
132
133 Some errors have detailed explanations: E0424, E0425.
134 For more information about an error, try `rustc --explain E0424`.