]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/assoc_fn_without_self.stderr
Auto merge of #106399 - estebank:type-err-span-label, r=nagisa
[rust.git] / tests / 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 help: consider using the associated function
19    |
20 LL |         self.bar();
21    |         +++++
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);
32    |         ++++++
33
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
40 error: aborting due to 4 previous errors
41
42 For more information about this error, try `rustc --explain E0425`.