]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/assoc_fn_without_self.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / suggestions / assoc_fn_without_self.stderr
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();
10    |         ~~~~~~~~~
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
17
18 error[E0425]: cannot find function `baz` in this scope
19   --> $DIR/assoc_fn_without_self.rs:18:9
20    |
21 LL |         baz(2, 3);
22    |         ^^^ not found in this scope
23    |
24 help: consider using the associated function
25    |
26 LL |         Self::baz(2, 3);
27    |         ~~~~~~~~~
28
29 error[E0425]: cannot find function `foo` in this scope
30   --> $DIR/assoc_fn_without_self.rs:14:13
31    |
32 LL |             foo();
33    |             ^^^ not found in this scope
34
35 error: aborting due to 4 previous errors
36
37 For more information about this error, try `rustc --explain E0425`.