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