fork/rust

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

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

master
690 B27 linesraw
1error: cannot define duplicate `where` clauses on an item
2  --> $DIR/duplicate-where-clause.rs:9:9
3   |
4LL |         P: Copy
5   |         - previous `where` clause starts here
6LL |     where
7LL |         P: Eq;
8   |         ^
9   |
10help: consider joining the two `where` clauses into one
11   |
12LL |         P: Copy,
13   |                ~
14
15error: where clauses are not allowed before const item bodies
16  --> $DIR/duplicate-where-clause.rs:19:5
17   |
18LL |       const K: ()
19   |             - while parsing this const item
20LL | /     where
21LL | |         P: Eq
22   | |_____________^ unexpected where clause
23LL |       = ()
24   |         -- the item body
25
26error: aborting due to 2 previous errors
27