fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB37 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-73260.rs:15: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-73260.rs:5:37
11   |
12LL | struct Arr<const N: usize>
13   |        --- required by a bound in this struct
14LL | where
15LL |     Assert::<{N < usize::MAX / 2}>: IsTrue,
16   |                                     ^^^^^^ required by this bound in `Arr`
17
18error[E0308]: mismatched types
19  --> $DIR/issue-73260.rs:15:32
20   |
21LL |     let x: Arr<{usize::MAX}> = Arr {};
22   |                                ^^^ expected `false`, found `true`
23   |
24   = note: expected constant `false`
25              found constant `true`
26note: required by a bound in `Arr`
27  --> $DIR/issue-73260.rs:5:37
28   |
29LL | struct Arr<const N: usize>
30   |        --- required by a bound in this struct
31LL | where
32LL |     Assert::<{N < usize::MAX / 2}>: IsTrue,
33   |                                     ^^^^^^ required by this bound in `Arr`
34
35error: aborting due to 2 previous errors
36
37For more information about this error, try `rustc --explain E0308`.