fork/rust

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

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

master
853 B36 linesraw
1error: where clauses are not allowed before const item bodies
2  --> $DIR/misplaced-where-clause.rs:7:1
3   |
4LL |   const K<T>: u64
5   |         - while parsing this const item
6LL | / where
7LL | |     T: Tr<()>
8   | |_____________^ unexpected where clause
9LL |   = T::K;
10   |     ---- the item body
11   |
12help: move the body before the where clause
13   |
14LL ~ = T::K where
15LL ~     T: Tr<()>;
16   |
17
18error: where clauses are not allowed before const item bodies
19  --> $DIR/misplaced-where-clause.rs:14:5
20   |
21LL |       const K: u64
22   |             - while parsing this const item
23LL | /     where
24LL | |         P: Copy
25   | |_______________^ unexpected where clause
26LL |       = 0;
27   |         - the item body
28   |
29help: move the body before the where clause
30   |
31LL ~     = 0 where
32LL ~         P: Copy;
33   |
34
35error: aborting due to 2 previous errors
36