1 error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied
2 --> $DIR/issue-89064.rs:17:16
4 LL | let _ = A::foo::<S>();
5 | ^^^ expected 0 generic arguments
7 note: associated function defined here, with 0 generic parameters
8 --> $DIR/issue-89064.rs:4:8
12 help: consider moving this generic argument to the `A` trait, which takes up to 1 argument
14 LL - let _ = A::foo::<S>();
15 LL + let _ = A::<S>::foo();
17 help: remove these generics
19 LL - let _ = A::foo::<S>();
20 LL + let _ = A::foo();
23 error[E0107]: this associated function takes 0 generic arguments but 2 generic arguments were supplied
24 --> $DIR/issue-89064.rs:22:16
26 LL | let _ = B::bar::<S, S>();
27 | ^^^ expected 0 generic arguments
29 note: associated function defined here, with 0 generic parameters
30 --> $DIR/issue-89064.rs:8:8
34 help: consider moving these generic arguments to the `B` trait, which takes up to 2 arguments
36 LL - let _ = B::bar::<S, S>();
37 LL + let _ = B::<S, S>::bar();
39 help: remove these generics
41 LL - let _ = B::bar::<S, S>();
42 LL + let _ = B::bar();
45 error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied
46 --> $DIR/issue-89064.rs:27:21
48 LL | let _ = A::<S>::foo::<S>();
49 | ^^^----- help: remove these generics
51 | expected 0 generic arguments
53 note: associated function defined here, with 0 generic parameters
54 --> $DIR/issue-89064.rs:4:8
59 error[E0107]: this associated function takes 0 generic arguments but 1 generic argument was supplied
60 --> $DIR/issue-89064.rs:31:16
62 LL | let _ = 42.into::<Option<_>>();
63 | ^^^^ expected 0 generic arguments
65 note: associated function defined here, with 0 generic parameters
66 --> $SRC_DIR/core/src/convert/mod.rs:LL:COL
68 LL | fn into(self) -> T;
70 help: consider moving this generic argument to the `Into` trait, which takes up to 1 argument
72 LL | let _ = Into::<Option<_>>::into(42);
73 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
74 help: remove these generics
76 LL - let _ = 42.into::<Option<_>>();
77 LL + let _ = 42.into();
80 error: aborting due to 4 previous errors
82 For more information about this error, try `rustc --explain E0107`.