11error: generic parameters may not be used in const operations
2- --> $DIR/issue-72787.rs:12 :17
2+ --> $DIR/issue-72787.rs:11 :17
33 |
44LL | Condition<{ LHS <= RHS }>: True
55 | ^^^ cannot perform const operation using `LHS`
@@ -8,7 +8,7 @@ LL | Condition<{ LHS <= RHS }>: True
88 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
99
1010error: generic parameters may not be used in const operations
11- --> $DIR/issue-72787.rs:12 :24
11+ --> $DIR/issue-72787.rs:11 :24
1212 |
1313LL | Condition<{ LHS <= RHS }>: True
1414 | ^^^ cannot perform const operation using `RHS`
@@ -17,7 +17,7 @@ LL | Condition<{ LHS <= RHS }>: True
1717 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
1818
1919error: generic parameters may not be used in const operations
20- --> $DIR/issue-72787.rs:26 :25
20+ --> $DIR/issue-72787.rs:25 :25
2121 |
2222LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
2323 | ^ cannot perform const operation using `I`
@@ -26,7 +26,7 @@ LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
2626 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
2727
2828error: generic parameters may not be used in const operations
29- --> $DIR/issue-72787.rs:26 :36
29+ --> $DIR/issue-72787.rs:25 :36
3030 |
3131LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
3232 | ^ cannot perform const operation using `J`
@@ -35,29 +35,21 @@ LL | IsLessOrEqual<{ 8 - I }, { 8 - J }>: True,
3535 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
3636
3737error[E0283]: type annotations needed
38- --> $DIR/issue-72787.rs:10:38
39- |
40- LL | impl<const LHS: u32, const RHS: u32> True for IsLessOrEqual<LHS, RHS> where
41- | ^^^^ cannot infer type for struct `IsLessOrEqual<LHS, RHS>`
42- |
43- = note: cannot satisfy `IsLessOrEqual<LHS, RHS>: True`
44-
45- error[E0283]: type annotations needed
46- --> $DIR/issue-72787.rs:22:26
38+ --> $DIR/issue-72787.rs:21:26
4739 |
4840LL | IsLessOrEqual<I, 8>: True,
4941 | ^^^^ cannot infer type for struct `IsLessOrEqual<I, 8_u32>`
5042 |
5143 = note: cannot satisfy `IsLessOrEqual<I, 8_u32>: True`
5244
5345error[E0283]: type annotations needed
54- --> $DIR/issue-72787.rs:22 :26
46+ --> $DIR/issue-72787.rs:21 :26
5547 |
5648LL | IsLessOrEqual<I, 8>: True,
5749 | ^^^^ cannot infer type for struct `IsLessOrEqual<I, 8_u32>`
5850 |
5951 = note: cannot satisfy `IsLessOrEqual<I, 8_u32>: True`
6052
61- error: aborting due to 7 previous errors
53+ error: aborting due to 6 previous errors
6254
6355For more information about this error, try `rustc --explain E0283`.
0 commit comments