1
1
error[E0107]: function takes 0 generic arguments but 1 generic argument was supplied
2
- --> $DIR/no-explicit-const-params.rs:22 :5
2
+ --> $DIR/no-explicit-const-params.rs:15 :5
3
3
|
4
- LL | foo::<false >();
5
- | ^^^--------- help: remove the unnecessary generics
4
+ LL | foo::<true >();
5
+ | ^^^-------- help: remove the unnecessary generics
6
6
| |
7
7
| expected 0 generic arguments
8
8
|
@@ -13,10 +13,10 @@ LL | const fn foo() {}
13
13
| ^^^
14
14
15
15
error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied
16
- --> $DIR/no-explicit-const-params.rs:24 :12
16
+ --> $DIR/no-explicit-const-params.rs:17 :12
17
17
|
18
- LL | <() as Bar<false >>::bar();
19
- | ^^^------- help: remove the unnecessary generics
18
+ LL | <() as Bar<true >>::bar();
19
+ | ^^^------ help: remove the unnecessary generics
20
20
| |
21
21
| expected 0 generic arguments
22
22
|
@@ -26,17 +26,11 @@ note: trait defined here, with 0 generic parameters
26
26
LL | trait Bar {
27
27
| ^^^
28
28
29
- error[E0277]: the trait bound `(): const Bar` is not satisfied
30
- --> $DIR/no-explicit-const-params.rs:24:6
31
- |
32
- LL | <() as Bar<false>>::bar();
33
- | ^^
34
-
35
29
error[E0107]: function takes 0 generic arguments but 1 generic argument was supplied
36
- --> $DIR/no-explicit-const-params.rs:15 :5
30
+ --> $DIR/no-explicit-const-params.rs:22 :5
37
31
|
38
- LL | foo::<true >();
39
- | ^^^-------- help: remove the unnecessary generics
32
+ LL | foo::<false >();
33
+ | ^^^--------- help: remove the unnecessary generics
40
34
| |
41
35
| expected 0 generic arguments
42
36
|
@@ -47,10 +41,10 @@ LL | const fn foo() {}
47
41
| ^^^
48
42
49
43
error[E0107]: trait takes 0 generic arguments but 1 generic argument was supplied
50
- --> $DIR/no-explicit-const-params.rs:17 :12
44
+ --> $DIR/no-explicit-const-params.rs:24 :12
51
45
|
52
- LL | <() as Bar<true >>::bar();
53
- | ^^^------ help: remove the unnecessary generics
46
+ LL | <() as Bar<false >>::bar();
47
+ | ^^^------- help: remove the unnecessary generics
54
48
| |
55
49
| expected 0 generic arguments
56
50
|
@@ -60,6 +54,12 @@ note: trait defined here, with 0 generic parameters
60
54
LL | trait Bar {
61
55
| ^^^
62
56
57
+ error[E0277]: the trait bound `(): const Bar` is not satisfied
58
+ --> $DIR/no-explicit-const-params.rs:24:6
59
+ |
60
+ LL | <() as Bar<false>>::bar();
61
+ | ^^
62
+
63
63
error: aborting due to 5 previous errors
64
64
65
65
Some errors have detailed explanations: E0107, E0277.
0 commit comments