fork/rust

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

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

master
1.2 KiB34 linesraw
1error[E0080]: evaluation of constant value failed
2  --> $DIR/wfness.rs:1:33
3   |
4LL | struct Ooopsies<const N: u8 = { u8::MAX + 1 }>;
5   |                                 ^^^^^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow
6
7error[E0277]: the trait bound `(): Trait<2>` is not satisfied
8  --> $DIR/wfness.rs:8:9
9   |
10LL |     (): Trait<N>;
11   |         ^^^^^^^^ the trait `Trait<2>` is not implemented for `()`
12   |
13   = help: the trait `Trait<3>` is implemented for `()`
14
15error[E0277]: the trait bound `(): Trait<1>` is not satisfied
16  --> $DIR/wfness.rs:18:13
17   |
18LL | fn foo() -> DependentDefaultWfness {
19   |             ^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait<1>` is not implemented for `()`
20   |
21   = help: the trait `Trait<3>` is implemented for `()`
22note: required by a bound in `WhereClause`
23  --> $DIR/wfness.rs:8:9
24   |
25LL | struct WhereClause<const N: u8 = 2>
26   |        ----------- required by a bound in this struct
27LL | where
28LL |     (): Trait<N>;
29   |         ^^^^^^^^ required by this bound in `WhereClause`
30
31error: aborting due to 3 previous errors
32
33Some errors have detailed explanations: E0080, E0277.
34For more information about an error, try `rustc --explain E0080`.