rust/tests/ui/parser/recover-where-clause-before-tuple-struct-body-1.stderr
2023-01-11 17:54:48 +01:00

24 lines
727 B
Plaintext

error: where clauses are not allowed before tuple struct bodies
--> $DIR/recover-where-clause-before-tuple-struct-body-1.rs:5:15
|
LL | struct Foo<T> where T: MyTrait, (T)
| --- ^^^^^^^^^^^^^^^^^ --- the struct body
| | |
| | unexpected where clause
| while parsing this tuple struct
|
help: move the body before the where clause
|
LL - struct Foo<T> where T: MyTrait, (T)
LL + struct Foo<T>(T) where T: MyTrait
|
error: expected `;`, found `<eof>`
--> $DIR/recover-where-clause-before-tuple-struct-body-1.rs:5:35
|
LL | struct Foo<T> where T: MyTrait, (T)
| ^ expected `;`
error: aborting due to 2 previous errors