2023-10-25 15:28:23 +00:00
|
|
|
error[E0107]: function takes 0 generic arguments but 1 generic argument was supplied
|
|
|
|
|
--> $DIR/no-explicit-const-params.rs:22:5
|
|
|
|
|
|
|
|
|
|
|
LL | foo::<false>();
|
2024-07-22 22:51:53 +00:00
|
|
|
| ^^^--------- help: remove the unnecessary generics
|
|
|
|
|
| |
|
|
|
|
|
| expected 0 generic arguments
|
2023-10-25 15:28:23 +00:00
|
|
|
|
|
|
|
|
|
note: function defined here, with 0 generic parameters
|
|
|
|
|
--> $DIR/no-explicit-const-params.rs:3:10
|
|
|
|
|
|
|
|
|
|
|
LL | const fn foo() {}
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied
|
|
|
|
|
--> $DIR/no-explicit-const-params.rs:24:12
|
|
|
|
|
|
|
|
|
|
|
LL | <() as Bar<false>>::bar();
|
2024-10-20 19:49:11 +00:00
|
|
|
| ^^^------- help: remove the unnecessary generics
|
|
|
|
|
| |
|
|
|
|
|
| expected 0 generic arguments
|
2023-10-25 15:28:23 +00:00
|
|
|
|
|
|
|
|
|
note: trait defined here, with 0 generic parameters
|
|
|
|
|
--> $DIR/no-explicit-const-params.rs:6:7
|
|
|
|
|
|
|
|
|
|
|
LL | trait Bar {
|
|
|
|
|
| ^^^
|
|
|
|
|
|
2024-10-22 03:22:57 +00:00
|
|
|
error[E0277]: the trait bound `(): const Bar` is not satisfied
|
2024-11-24 01:15:04 +00:00
|
|
|
--> $DIR/no-explicit-const-params.rs:24:6
|
2024-10-22 03:22:57 +00:00
|
|
|
|
|
|
|
|
|
LL | <() as Bar<false>>::bar();
|
2024-11-24 01:15:04 +00:00
|
|
|
| ^^
|
2024-10-22 03:22:57 +00:00
|
|
|
|
2023-10-25 15:28:23 +00:00
|
|
|
error[E0107]: function takes 0 generic arguments but 1 generic argument was supplied
|
|
|
|
|
--> $DIR/no-explicit-const-params.rs:15:5
|
|
|
|
|
|
|
|
|
|
|
LL | foo::<true>();
|
2024-07-22 22:51:53 +00:00
|
|
|
| ^^^-------- help: remove the unnecessary generics
|
|
|
|
|
| |
|
|
|
|
|
| expected 0 generic arguments
|
2023-10-25 15:28:23 +00:00
|
|
|
|
|
|
|
|
|
note: function defined here, with 0 generic parameters
|
|
|
|
|
--> $DIR/no-explicit-const-params.rs:3:10
|
|
|
|
|
|
|
|
|
|
|
LL | const fn foo() {}
|
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied
|
|
|
|
|
--> $DIR/no-explicit-const-params.rs:17:12
|
|
|
|
|
|
|
|
|
|
|
LL | <() as Bar<true>>::bar();
|
2024-10-20 19:49:11 +00:00
|
|
|
| ^^^------ help: remove the unnecessary generics
|
|
|
|
|
| |
|
|
|
|
|
| expected 0 generic arguments
|
2023-10-25 15:28:23 +00:00
|
|
|
|
|
|
|
|
|
note: trait defined here, with 0 generic parameters
|
|
|
|
|
--> $DIR/no-explicit-const-params.rs:6:7
|
|
|
|
|
|
|
|
|
|
|
LL | trait Bar {
|
|
|
|
|
| ^^^
|
|
|
|
|
|
2024-10-30 18:03:44 +00:00
|
|
|
error: aborting due to 5 previous errors
|
2023-10-25 15:28:23 +00:00
|
|
|
|
2024-10-22 03:22:57 +00:00
|
|
|
Some errors have detailed explanations: E0107, E0277.
|
|
|
|
|
For more information about an error, try `rustc --explain E0107`.
|