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