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