2020-09-10 12:43:53 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-09-14 20:29:12 -05:00
|
|
|
--> $DIR/issue-73260.rs:15:12
|
2020-09-10 12:43:53 -05:00
|
|
|
|
|
2020-10-24 18:21:40 -05:00
|
|
|
LL | let x: Arr<{usize::MAX}> = Arr {};
|
|
|
|
| ^^^^^^^^^^^^^^^^^ expected `false`, found `true`
|
2020-09-10 12:43:53 -05:00
|
|
|
|
|
2022-08-11 21:00:37 -05:00
|
|
|
= note: expected constant `false`
|
|
|
|
found constant `true`
|
2022-08-11 22:13:45 -05:00
|
|
|
note: required by a bound in `Arr`
|
2022-09-14 20:29:12 -05:00
|
|
|
--> $DIR/issue-73260.rs:5:37
|
2022-08-11 22:13:45 -05:00
|
|
|
|
|
|
|
|
LL | struct Arr<const N: usize>
|
2023-02-20 23:21:07 -06:00
|
|
|
| --- required by a bound in this struct
|
2022-08-11 22:13:45 -05:00
|
|
|
LL | where
|
|
|
|
LL | Assert::<{N < usize::MAX / 2}>: IsTrue,
|
|
|
|
| ^^^^^^ required by this bound in `Arr`
|
2020-09-10 12:43:53 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2022-09-14 20:29:12 -05:00
|
|
|
--> $DIR/issue-73260.rs:15:32
|
2020-09-10 12:43:53 -05:00
|
|
|
|
|
2020-10-24 18:21:40 -05:00
|
|
|
LL | let x: Arr<{usize::MAX}> = Arr {};
|
|
|
|
| ^^^ expected `false`, found `true`
|
2020-09-10 12:43:53 -05:00
|
|
|
|
|
2022-08-11 21:00:37 -05:00
|
|
|
= note: expected constant `false`
|
|
|
|
found constant `true`
|
2022-08-11 22:13:45 -05:00
|
|
|
note: required by a bound in `Arr`
|
2022-09-14 20:29:12 -05:00
|
|
|
--> $DIR/issue-73260.rs:5:37
|
2022-08-11 22:13:45 -05:00
|
|
|
|
|
|
|
|
LL | struct Arr<const N: usize>
|
2023-02-20 23:21:07 -06:00
|
|
|
| --- required by a bound in this struct
|
2022-08-11 22:13:45 -05:00
|
|
|
LL | where
|
|
|
|
LL | Assert::<{N < usize::MAX / 2}>: IsTrue,
|
|
|
|
| ^^^^^^ required by this bound in `Arr`
|
2020-09-10 12:43:53 -05:00
|
|
|
|
2021-08-27 11:04:57 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2020-09-10 12:43:53 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|