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