fork/rust

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

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

master
727 B23 linesraw
1error: where clauses are not allowed before tuple struct bodies
2  --> $DIR/recover-where-clause-before-tuple-struct-body-1.rs:5:15
3   |
4LL | struct Foo<T> where T: MyTrait, (T)
5   |        ---    ^^^^^^^^^^^^^^^^^ --- the struct body
6   |        |      |
7   |        |      unexpected where clause
8   |        while parsing this tuple struct
9   |
10help: move the body before the where clause
11   |
12LL - struct Foo<T> where T: MyTrait, (T)
13LL + struct Foo<T>(T) where T: MyTrait
14   |
15
16error: expected `;`, found `<eof>`
17  --> $DIR/recover-where-clause-before-tuple-struct-body-1.rs:5:35
18   |
19LL | struct Foo<T> where T: MyTrait, (T)
20   |                                   ^ expected `;`
21
22error: aborting due to 2 previous errors
23