fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-72819-generic-in-const-eval.rs:20:12 3 | 4LL | let x: Arr<{usize::MAX}> = Arr {}; 5 | ^^^^^^^^^^^^^^^^^ expected `false`, found `true` 6 | 7 = note: expected constant `false` 8 found constant `true` 9note: required by a bound in `Arr` 10 --> $DIR/issue-72819-generic-in-const-eval.rs:8:39 11 | 12LL | struct Arr<const N: usize> 13 | --- required by a bound in this struct 14LL | where Assert::<{N < usize::MAX / 2}>: IsTrue, 15 | ^^^^^^ required by this bound in `Arr` 16 17error[E0308]: mismatched types 18 --> $DIR/issue-72819-generic-in-const-eval.rs:20:32 19 | 20LL | let x: Arr<{usize::MAX}> = Arr {}; 21 | ^^^ expected `false`, found `true` 22 | 23 = note: expected constant `false` 24 found constant `true` 25note: required by a bound in `Arr` 26 --> $DIR/issue-72819-generic-in-const-eval.rs:8:39 27 | 28LL | struct Arr<const N: usize> 29 | --- required by a bound in this struct 30LL | where Assert::<{N < usize::MAX / 2}>: IsTrue, 31 | ^^^^^^ required by this bound in `Arr` 32 33error: aborting due to 2 previous errors 34 35For more information about this error, try `rustc --explain E0308`.