]> git.proxmox.com Git - rustc.git/blob - tests/ui/parser/recover-where-clause-before-tuple-struct-body-0.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / parser / recover-where-clause-before-tuple-struct-body-0.stderr
1 error: where clauses are not allowed before tuple struct bodies
2 --> $DIR/recover-where-clause-before-tuple-struct-body-0.rs:5:1
3 |
4 LL | pub struct Example
5 | ------- while parsing this tuple struct
6 LL | / where
7 LL | | (): Sized,
8 | |______________^ unexpected where clause
9 LL | (usize);
10 | ------- the struct body
11 |
12 help: move the body before the where clause
13 |
14 LL ~ pub struct Example(usize)
15 LL | where
16 LL ~ (): Sized;
17 |
18
19 error: where clauses are not allowed before tuple struct bodies
20 --> $DIR/recover-where-clause-before-tuple-struct-body-0.rs:11:1
21 |
22 LL | struct _Demo
23 | ----- while parsing this tuple struct
24 LL | / where
25 LL | | (): Sized,
26 LL | | String: Clone,
27 | |__________________^ unexpected where clause
28 LL | (pub usize, usize);
29 | ------------------ the struct body
30 |
31 help: move the body before the where clause
32 |
33 LL ~ struct _Demo(pub usize, usize)
34 LL | where
35 LL | (): Sized,
36 LL ~ String: Clone;
37 |
38
39 error: aborting due to 2 previous errors
40