@@ -17,7 +17,7 @@ LL | Condition<{ LHS <= RHS }>: True
17
17
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
18
18
19
19
error: generic parameters may not be used in const operations
20
- --> $DIR/issue-72787.rs:25 :25
20
+ --> $DIR/issue-72787.rs:23 :25
21
21
|
22
22
LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
23
23
| ^ cannot perform const operation using `I`
@@ -26,50 +26,13 @@ LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
26
26
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
27
27
28
28
error: generic parameters may not be used in const operations
29
- --> $DIR/issue-72787.rs:25 :36
29
+ --> $DIR/issue-72787.rs:23 :36
30
30
|
31
31
LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
32
32
| ^ cannot perform const operation using `J`
33
33
|
34
34
= help: const parameters may only be used as standalone arguments, i.e. `J`
35
35
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
36
36
37
- error[E0283]: type annotations needed: cannot satisfy `IsLessOrEqual<I, 8>: True`
38
- --> $DIR/issue-72787.rs:21:26
39
- |
40
- LL | IsLessOrEqual<I, 8>: True,
41
- | ^^^^
42
- |
43
- note: multiple `impl`s or `where` clauses satisfying `IsLessOrEqual<I, 8>: True` found
44
- --> $DIR/issue-72787.rs:10:1
45
- |
46
- LL | impl<const LHS: u32, const RHS: u32> True for IsLessOrEqual<LHS, RHS> where
47
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48
- ...
49
- LL | IsLessOrEqual<I, 8>: True,
50
- | ^^^^
51
- ...
52
- LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
53
- | ^^^^
54
-
55
- error[E0283]: type annotations needed: cannot satisfy `IsLessOrEqual<I, 8>: True`
56
- --> $DIR/issue-72787.rs:21:26
57
- |
58
- LL | IsLessOrEqual<I, 8>: True,
59
- | ^^^^
60
- |
61
- note: multiple `impl`s or `where` clauses satisfying `IsLessOrEqual<I, 8>: True` found
62
- --> $DIR/issue-72787.rs:10:1
63
- |
64
- LL | impl<const LHS: u32, const RHS: u32> True for IsLessOrEqual<LHS, RHS> where
65
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
- ...
67
- LL | IsLessOrEqual<I, 8>: True,
68
- | ^^^^
69
- ...
70
- LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
71
- | ^^^^
72
-
73
- error: aborting due to 6 previous errors
37
+ error: aborting due to 4 previous errors
74
38
75
- For more information about this error, try `rustc --explain E0283`.
0 commit comments