fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
2.9 KiB106 linesraw
1error[E0425]: cannot find function `shave` in this scope
2  --> $DIR/issue-2356.rs:17:5
3   |
4LL |     shave();
5   |     ^^^^^ not found in this scope
6
7error[E0425]: cannot find function `clone` in this scope
8  --> $DIR/issue-2356.rs:24:5
9   |
10LL |     clone();
11   |     ^^^^^ help: try: `self.clone`
12
13error[E0425]: cannot find function `default` in this scope
14  --> $DIR/issue-2356.rs:31:5
15   |
16LL |     default();
17   |     ^^^^^^^ help: try: `Self::default`
18
19error[E0425]: cannot find value `whiskers` in this scope
20  --> $DIR/issue-2356.rs:39:5
21   |
22LL |     whiskers -= other;
23   |     ^^^^^^^^ a field by this name exists in `Self`
24
25error[E0425]: cannot find function `shave` in this scope
26  --> $DIR/issue-2356.rs:41:5
27   |
28LL |     shave(4);
29   |     ^^^^^ help: try: `Self::shave`
30
31error[E0425]: cannot find function `purr` in this scope
32  --> $DIR/issue-2356.rs:43:5
33   |
34LL |     purr();
35   |     ^^^^ not found in this scope
36
37error[E0425]: cannot find function `static_method` in this scope
38  --> $DIR/issue-2356.rs:52:9
39   |
40LL |         static_method();
41   |         ^^^^^^^^^^^^^ not found in this scope
42
43error[E0425]: cannot find function `purr` in this scope
44  --> $DIR/issue-2356.rs:54:9
45   |
46LL |         purr();
47   |         ^^^^ not found in this scope
48
49error[E0425]: cannot find function `purr` in this scope
50  --> $DIR/issue-2356.rs:56:9
51   |
52LL |         purr();
53   |         ^^^^ not found in this scope
54
55error[E0425]: cannot find function `purr` in this scope
56  --> $DIR/issue-2356.rs:58:9
57   |
58LL |         purr();
59   |         ^^^^ not found in this scope
60
61error[E0424]: expected value, found module `self`
62  --> $DIR/issue-2356.rs:65:8
63   |
64LL |     if self.whiskers > 3 {
65   |        ^^^^ `self` value is a keyword only available in methods with `self` parameter
66
67error[E0425]: cannot find function `grow_older` in this scope
68  --> $DIR/issue-2356.rs:72:5
69   |
70LL |     grow_older();
71   |     ^^^^^^^^^^ not found in this scope
72
73error[E0425]: cannot find function `shave` in this scope
74  --> $DIR/issue-2356.rs:74:5
75   |
76LL |     shave();
77   |     ^^^^^ not found in this scope
78
79error[E0425]: cannot find value `whiskers` in this scope
80  --> $DIR/issue-2356.rs:79:5
81   |
82LL |     whiskers = 0;
83   |     ^^^^^^^^ help: you might have meant to use the available field: `self.whiskers`
84
85error[E0425]: cannot find value `whiskers` in this scope
86  --> $DIR/issue-2356.rs:84:5
87   |
88LL |     whiskers = 4;
89   |     ^^^^^^^^ a field by this name exists in `Self`
90
91error[E0425]: cannot find function `purr_louder` in this scope
92  --> $DIR/issue-2356.rs:86:5
93   |
94LL |     purr_louder();
95   |     ^^^^^^^^^^^ not found in this scope
96
97error[E0424]: expected value, found module `self`
98  --> $DIR/issue-2356.rs:92:5
99   |
100LL |     self += 1;
101   |     ^^^^ `self` value is a keyword only available in methods with `self` parameter
102
103error: aborting due to 17 previous errors
104
105Some errors have detailed explanations: E0424, E0425.
106For more information about an error, try `rustc --explain E0424`.