1 error[E0308]: mismatched types
2 --> $DIR/issue-73260.rs:16:12
4 LL | let x: Arr<{usize::MAX}> = Arr {};
5 | ^^^^^^^^^^^^^^^^^ expected `false`, found `true`
7 = note: expected constant `false`
9 note: required by a bound in `Arr`
10 --> $DIR/issue-73260.rs:6:37
12 LL | struct Arr<const N: usize>
13 | --- required by a bound in this
15 LL | Assert::<{N < usize::MAX / 2}>: IsTrue,
16 | ^^^^^^ required by this bound in `Arr`
18 error[E0308]: mismatched types
19 --> $DIR/issue-73260.rs:16:32
21 LL | let x: Arr<{usize::MAX}> = Arr {};
22 | ^^^ expected `false`, found `true`
24 = note: expected constant `false`
26 note: required by a bound in `Arr`
27 --> $DIR/issue-73260.rs:6:37
29 LL | struct Arr<const N: usize>
30 | --- required by a bound in this
32 LL | Assert::<{N < usize::MAX / 2}>: IsTrue,
33 | ^^^^^^ required by this bound in `Arr`
35 error: aborting due to 2 previous errors
37 For more information about this error, try `rustc --explain E0308`.