1 error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied
2 --> $DIR/issue-104287.rs:10:5
5 | ^^^------ help: remove these generics
7 | expected 0 generic arguments
9 note: associated function defined here, with 0 generic parameters
10 --> $DIR/issue-104287.rs:6:8
15 error[E0425]: cannot find function `foo` in this scope
16 --> $DIR/issue-104287.rs:10:5
19 | ^^^ not found in this scope
21 help: use the `.` operator to call the method `foo` on `&S`
27 error: aborting due to 2 previous errors
29 Some errors have detailed explanations: E0107, E0425.
30 For more information about an error, try `rustc --explain E0107`.