]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-2356.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[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 error[E0425]: cannot find function `purr` in this scope
53   --> $DIR/issue-2356.rs:54:9
54    |
55 LL |         purr();
56    |         ^^^^ not found in this scope
57
58 error[E0425]: cannot find function `purr` in this scope
59   --> $DIR/issue-2356.rs:56:9
60    |
61 LL |         purr();
62    |         ^^^^ not found in this scope
63
64 error[E0425]: cannot find function `purr` in this scope
65   --> $DIR/issue-2356.rs:58:9
66    |
67 LL |         purr();
68    |         ^^^^ not found in this scope
69
70 error[E0424]: expected value, found module `self`
71   --> $DIR/issue-2356.rs:65:8
72    |
73 LL |   fn meow() {
74    |      ---- this function doesn't have a `self` parameter
75 LL |     if self.whiskers > 3 {
76    |        ^^^^ `self` value is a keyword only available in methods with a `self` parameter
77    |
78 help: add a `self` receiver parameter to make the associated `fn` a method
79    |
80 LL |   fn meow(&self) {
81    |           ^^^^^
82
83 error[E0425]: cannot find function `grow_older` in this scope
84   --> $DIR/issue-2356.rs:72:5
85    |
86 LL |     grow_older();
87    |     ^^^^^^^^^^ not found in this scope
88
89 error[E0425]: cannot find function `shave` in this scope
90   --> $DIR/issue-2356.rs:74:5
91    |
92 LL |     shave();
93    |     ^^^^^ not found in this scope
94
95 error[E0425]: cannot find value `whiskers` in this scope
96   --> $DIR/issue-2356.rs:79:5
97    |
98 LL |     whiskers = 0;
99    |     ^^^^^^^^ help: you might have meant to use the available field: `self.whiskers`
100
101 error[E0425]: cannot find value `whiskers` in this scope
102   --> $DIR/issue-2356.rs:84:5
103    |
104 LL |     whiskers = 4;
105    |     ^^^^^^^^ a field by this name exists in `Self`
106
107 error[E0425]: cannot find function `purr_louder` in this scope
108   --> $DIR/issue-2356.rs:86:5
109    |
110 LL |     purr_louder();
111    |     ^^^^^^^^^^^ not found in this scope
112
113 error[E0424]: expected value, found module `self`
114   --> $DIR/issue-2356.rs:92:5
115    |
116 LL | fn main() {
117    |    ---- this function can't have a `self` parameter
118 LL |     self += 1;
119    |     ^^^^ `self` value is a keyword only available in methods with a `self` parameter
120
121 error: aborting due to 17 previous errors
122
123 Some errors have detailed explanations: E0424, E0425.
124 For more information about an error, try `rustc --explain E0424`.