2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: associated function takes 0 generic arguments but 1 generic argument was supplied
|
2022-08-21 02:59:09 -05:00
|
|
|
--> $DIR/issue-89064.rs:17:16
|
|
|
|
|
|
|
|
|
LL | let _ = A::foo::<S>();
|
|
|
|
| ^^^ expected 0 generic arguments
|
|
|
|
|
|
|
|
|
note: associated function defined here, with 0 generic parameters
|
|
|
|
--> $DIR/issue-89064.rs:4:8
|
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^
|
2022-08-28 03:51:28 -05:00
|
|
|
help: consider moving this generic argument to the `A` trait, which takes up to 1 argument
|
2022-08-21 02:59:09 -05:00
|
|
|
|
|
|
|
|
LL - let _ = A::foo::<S>();
|
2022-08-28 03:51:28 -05:00
|
|
|
LL + let _ = A::<S>::foo();
|
2022-08-21 02:59:09 -05:00
|
|
|
|
|
2024-07-04 20:28:24 -05:00
|
|
|
help: remove the unnecessary generics
|
2022-08-21 02:59:09 -05:00
|
|
|
|
|
|
|
|
LL - let _ = A::foo::<S>();
|
2022-08-28 03:51:28 -05:00
|
|
|
LL + let _ = A::foo();
|
2022-08-21 02:59:09 -05:00
|
|
|
|
|
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: associated function takes 0 generic arguments but 2 generic arguments were supplied
|
2022-08-21 02:59:09 -05:00
|
|
|
--> $DIR/issue-89064.rs:22:16
|
|
|
|
|
|
|
|
|
LL | let _ = B::bar::<S, S>();
|
|
|
|
| ^^^ expected 0 generic arguments
|
|
|
|
|
|
|
|
|
note: associated function defined here, with 0 generic parameters
|
|
|
|
--> $DIR/issue-89064.rs:8:8
|
|
|
|
|
|
|
|
|
LL | fn bar() {}
|
|
|
|
| ^^^
|
2022-08-28 03:51:28 -05:00
|
|
|
help: consider moving these generic arguments to the `B` trait, which takes up to 2 arguments
|
2022-08-21 02:59:09 -05:00
|
|
|
|
|
|
|
|
LL - let _ = B::bar::<S, S>();
|
2022-08-28 03:51:28 -05:00
|
|
|
LL + let _ = B::<S, S>::bar();
|
2022-08-21 02:59:09 -05:00
|
|
|
|
|
2024-07-04 20:28:24 -05:00
|
|
|
help: remove the unnecessary generics
|
2022-08-21 02:59:09 -05:00
|
|
|
|
|
|
|
|
LL - let _ = B::bar::<S, S>();
|
2022-08-28 03:51:28 -05:00
|
|
|
LL + let _ = B::bar();
|
2022-08-21 02:59:09 -05:00
|
|
|
|
|
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: associated function takes 0 generic arguments but 1 generic argument was supplied
|
2022-08-28 01:59:06 -05:00
|
|
|
--> $DIR/issue-89064.rs:27:21
|
2022-08-21 02:59:09 -05:00
|
|
|
|
|
|
|
|
LL | let _ = A::<S>::foo::<S>();
|
2024-07-22 17:51:53 -05:00
|
|
|
| ^^^----- help: remove the unnecessary generics
|
|
|
|
| |
|
|
|
|
| expected 0 generic arguments
|
2022-08-21 02:59:09 -05:00
|
|
|
|
|
|
|
|
note: associated function defined here, with 0 generic parameters
|
|
|
|
--> $DIR/issue-89064.rs:4:8
|
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^
|
|
|
|
|
2023-02-23 11:27:06 -06:00
|
|
|
error[E0107]: method takes 0 generic arguments but 1 generic argument was supplied
|
2022-08-28 03:51:28 -05:00
|
|
|
--> $DIR/issue-89064.rs:31:16
|
|
|
|
|
|
|
|
|
LL | let _ = 42.into::<Option<_>>();
|
|
|
|
| ^^^^ expected 0 generic arguments
|
|
|
|
|
|
|
|
|
help: consider moving this generic argument to the `Into` trait, which takes up to 1 argument
|
|
|
|
|
|
|
|
|
LL | let _ = Into::<Option<_>>::into(42);
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2024-07-04 20:28:24 -05:00
|
|
|
help: remove the unnecessary generics
|
2022-08-28 03:51:28 -05:00
|
|
|
|
|
|
|
|
LL - let _ = 42.into::<Option<_>>();
|
|
|
|
LL + let _ = 42.into();
|
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2022-08-21 02:59:09 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0107`.
|