]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-104287.stderr
Rollup merge of #107559 - WaffleLapkin:is_it_2015¿, r=davidtwco
[rust.git] / tests / ui / suggestions / issue-104287.stderr
1 error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied
2   --> $DIR/issue-104287.rs:10:5
3    |
4 LL |     foo::<()>(x);
5    |     ^^^------ help: remove these generics
6    |     |
7    |     expected 0 generic arguments
8    |
9 note: associated function defined here, with 0 generic parameters
10   --> $DIR/issue-104287.rs:6:8
11    |
12 LL |     fn foo(&self) {}
13    |        ^^^
14
15 error[E0425]: cannot find function `foo` in this scope
16   --> $DIR/issue-104287.rs:10:5
17    |
18 LL |     foo::<()>(x);
19    |     ^^^ not found in this scope
20    |
21 help: use the `.` operator to call the method `foo` on `&S`
22    |
23 LL -     foo::<()>(x);
24 LL +     x.foo();
25    |
26
27 error: aborting due to 2 previous errors
28
29 Some errors have detailed explanations: E0107, E0425.
30 For more information about an error, try `rustc --explain E0107`.