]>
Commit | Line | Data |
---|---|---|
04454e1e FG |
1 | error[E0425]: cannot find function `foo` in this scope |
2 | --> $DIR/assoc_fn_without_self.rs:16:9 | |
3 | | | |
4 | LL | foo(); | |
5 | | ^^^ not found in this scope | |
6 | | | |
7 | help: consider using the associated function | |
8 | | | |
9 | LL | Self::foo(); | |
487cf647 | 10 | | ++++++ |
04454e1e FG |
11 | |
12 | error[E0425]: cannot find function `bar` in this scope | |
13 | --> $DIR/assoc_fn_without_self.rs:17:9 | |
14 | | | |
15 | LL | bar(); | |
16 | | ^^^ not found in this scope | |
487cf647 FG |
17 | | |
18 | help: consider using the associated function | |
19 | | | |
20 | LL | self.bar(); | |
21 | | +++++ | |
04454e1e FG |
22 | |
23 | error[E0425]: cannot find function `baz` in this scope | |
24 | --> $DIR/assoc_fn_without_self.rs:18:9 | |
25 | | | |
26 | LL | baz(2, 3); | |
27 | | ^^^ not found in this scope | |
28 | | | |
29 | help: consider using the associated function | |
30 | | | |
31 | LL | Self::baz(2, 3); | |
487cf647 | 32 | | ++++++ |
04454e1e | 33 | |
2b03887a FG |
34 | error[E0425]: cannot find function `foo` in this scope |
35 | --> $DIR/assoc_fn_without_self.rs:14:13 | |
36 | | | |
37 | LL | foo(); | |
38 | | ^^^ not found in this scope | |
39 | ||
04454e1e FG |
40 | error: aborting due to 4 previous errors |
41 | ||
42 | For more information about this error, try `rustc --explain E0425`. |